Results 1 to 2 of 2

Thread: Help <?php echo get_post_meta($post->ID, 'cp_zipcode', true); ?>

  1. #1
    Thread Starter
    Member jonduckett's Avatar
    Join Date
    Mar 2011
    Location
    United Kingdom
    Posts
    51
    Thanks
    0
    Thanked 3 Times in 2 Posts

    Help <?php echo get_post_meta($post->ID, 'cp_zipcode', true); ?>

    Hi,
    I am trying to use <?php echo get_post_meta($post->ID, 'cp_zipcode', true); ?> to get the zipcode to show in a widget in the sidebar (on the single ad listing page).
    It does work and displays a zip code but if the ad poster has more than one listing it displays a random zipcode from any of their ad listings?
    How do I get it to show the zipcode related to their ad?

    Thanks
    Jon

  2. #2
    bbocioaca's Avatar
    Join Date
    Jul 2012
    Location
    Buzau, Romania
    Posts
    160
    Thanks
    0
    Thanked 16 Times in 15 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: May 16th, 2012, 09:53 AM
  2. Echo Large Image URL
    By toms in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: March 19th, 2012, 02:05 AM
  3. Echo address after domain
    By toms in forum ClassiPress General Discussion
    Replies: 1
    Last Post: October 5th, 2011, 08:36 AM
  4. Echo address after domain
    By toms in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: October 5th, 2011, 08:36 AM
  5. This may not be true, or
    By luehning in forum Report ClassiPress Bugs
    Replies: 8
    Last Post: July 28th, 2011, 11:32 AM