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 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.