Results 1 to 2 of 2

Thread: How to get cp_zipcode to show in the side bar?

  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

    How to get cp_zipcode to show in the side bar?

    Hi i am trying to display the zipcode in the single ad side bar using:

    PHP Code:
    <?php global $wp_query;
    $postid $wp_query->post->ID;
    echo 
    get_post_meta($postid'cp_zipcode'true);
    ?>
    It works but if the ad poster has more than one ad listing it echo's a random zipcode from any one of their ad listings!?
    How do i get it to display the zipcode from the ad you are viewing.

  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. Help <?php echo get_post_meta($post->ID, 'cp_zipcode', true); ?>
    By jonduckett in forum ClassiPress General Discussion
    Replies: 1
    Last Post: August 18th, 2012, 10:54 AM
  2. Replies: 2
    Last Post: May 19th, 2012, 11:33 AM
  3. Categories widget in op ( dose not show categories in side bar )
    By scottmlubik in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: November 1st, 2011, 03:22 PM