Have you tried to temporarily:
– deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
– switching to the default theme to rule out any theme-specific problems
could it be that you have an older version of WP? recent versions allow argument 2 to be optional
Got it agelonwl and Marcus… Thanks for your responces.Here is the solution. I make the 2nd parameter as null as it is a string according to the API. Now it works fine.
http://codex.ww.wp.xz.cn/Function_Reference/get_post_meta
Thanks for the solution, but since I am not a coder (this deep anyway) how do I apply this to fix my issue? Can you give me the exact code and where to put it?
@therealbodysculpter,
you have to edit this php file /wp-includes/post.php then search and edit this function get_post()
e.g. it should be something like
function get_post( $post = null, $output = OBJECT, $filter = 'raw' ) {
or
function get_post_meta($post_id, $key = '', $single = false) {
Note: this might not be recommended and you might want to upgrade your wp
@agelonwl – Suggesting that users make changes to core files is NOT good advice.
yes, that is not recommended as per my note above; you need to upgrade your wordpress if you are using old wp version as per Marcus suggestion.