get_post_meta problem
-
Hi all,
Having a bit of an unusual problem relating to get_post_meta.
This function was originally working, then I moved to a Mac OS X server and upgraded to the latest WordPress (2.9.2). (PHP config appears to be similar)For some reason, get_post_meta is no longer working.
This is the code I’m using, which is located inside the WordPress loop, inside my page.php template file.
echo get_post_meta($post->ID, 'realTitle', true);
If I try echoing $post->ID, I get the correct post ID. Even if I replace $post->ID with the actual page number I get no results.
The same is true if I try using the_meta(); instead of get_post_meta();Any insight and help would be greatly appreciated as I’m a little confused!
Thanks,
David
- The topic ‘get_post_meta problem’ is closed to new replies.