WordPress at a glance
Home Functions From tag: reset

reset (tag)

wp_reset_postdata()

Restores the global $post variable to the correct state: current post in the main query.

wp_reset_query()

Invalidates (destroys) the data of the last query created for use in an arbitrary WordPress Loop and restores the default loop data.