Note that in WP 3.0, instead of : $GLOBALS['post'] = $GLOBALS['wp_query']->post; // restore global $post you can use: wp_reset_postdata(); -- http://scribu.net