[wp-hackers] get_post_meta in widgets

scribu scribu at gmail.com
Wed Apr 14 14:12:46 UTC 2010


Ash, the problem with your code is that you're not in the global scope, so
$post is not accesible.

I would simply replace $post->ID with get_the_ID().

Also see http://core.trac.wordpress.org/ticket/12320


@Mike Schinkel: I think you meant get_posts().


-- 
http://scribu.net


More information about the wp-hackers mailing list