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