blakemiddleton
Member
Posted 2 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?
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.
blakemiddleton
Member
Posted 2 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.