[wp-hackers] get_post_meta in wp_head?
Mindshare Studios
info at mindsharestudios.com
Thu Jan 8 17:26:57 GMT 2009
Hi Charles,
I actually just had to use $post instead and it worked fine:
global $post;
$id = $post->ID;
$latitude = get_post_meta($id, '_latitude', true);
if ($latitude != '') {
// do stuff
}
On Thu, Jan 8, 2009 at 12:34 AM, Charles K. Clarkson
<cclarkson at htcomp.net> wrote:
> Mindshare Studios wrote:
>>
>> Thanks I got it working!
>
> Perhaps you could share what you did to get it working so future readers
> might learn from you.
More information about the wp-hackers
mailing list