WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP 2.1.1 get_post_meta not working (3 posts)

  1. blakemiddleton
    Member
    Posted 7 years ago #

    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?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

  3. blakemiddleton
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic