[wp-hackers] nested loops in 3.0 trunk

scribu scribu at gmail.com
Fri May 21 11:32:09 UTC 2010


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


More information about the wp-hackers mailing list