wp_reset_query


wp_reset_query ( No parameters )

Defined at:

Description

Destroys the previous query and sets up a new query.

This should be used after query_posts() and before another query_posts(). This will remove obscure bugs that occur when the previous WP_Query object is not destroyed properly before another is set up.

Related Functions

wp_reset_vars, wp_register, wp_delete_user, wp_insert_user, wp_parse_url

Top Google Results

User discussions

wpseek mobile