How to use WP_Query without breaking the main Query
it’s unclear when to use one or the other, or if they must be used at all If you’ve modified the global $wp_query variable (e.g. using query_posts() which should NOT actually be used), then use wp_reset_query() to restore the variable back to the main query, i.e. so that the variable references or points to the … Read more