reset (tag)

wp_reset_postdata()

Restores the global $post variable to the correct state: to correspond the current page.

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.