[wp-trac] [WordPress Trac] #11461: When creating a new WP_Query, running the_post() on the new object resets global $post
WordPress Trac
wp-trac at lists.automattic.com
Wed Dec 16 21:03:37 UTC 2009
#11461: When creating a new WP_Query, running the_post() on the new object resets
global $post
--------------------------+-------------------------------------------------
Reporter: bsdeluxe | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Query | Version:
Severity: normal | Keywords: close
--------------------------+-------------------------------------------------
Comment(by dd32):
call {{{wp_reset_query()}}} after your custom loop to reset it back to the
main loop.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11461#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list