• Resolved blakemiddleton

    (@blakemiddleton)


    I just upgraded to 2.1.1, and get_post_meta($post->ID, 'client', true) is no longer working. I upgraded from 2.0.x which had the get_post_meta function defined in functions.php. The new functions.php doesn’t have this function or any other meta functions defined. Where did these move to, and how do I get get_post_meta to work again?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    get_post_meta is still there. It just moved to post.php.

    Those functions are loaded by default, so make sure you uploaded *all* the WordPress files to your site and didn’t forget any.

    Thread Starter blakemiddleton

    (@blakemiddleton)

    Fixed it. client should have been Client. Somehow the case of the meta key changed, or the previous version of WP didn’t care about case. Thanks.

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