WP_Query::reset_postdata()

Method: After looping through a nested query, this function restores the $post global to the current post in this query.

Source: wp-includes/class-wp-query.php:4248

Used by 1 function | Uses 1 function

WP_Query::is_singular()

Method: Is the query for an existing single post of any post type (post, attachment, page, custom post types)?

Source: wp-includes/class-wp-query.php:4049

Used by 1 function | Uses 1 function