• Resolved sdjl

    (@sdjl)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sdjl

    (@sdjl)

    Rather bizarrely this has rectified itself.
    I suspect something to do with cache files, APC and wp-cache.

    Hi,

    I have the same problem even with get_the id function. MySQL Tables are OK 3 of my products contain pictures. No images display.

    Any ideas ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_post_meta problem’ is closed to new replies.