Reading some stuff about query_reset_postdata
and query_reset_query
makes me confused. For example:
Above states that you should only use query_reset_postdata()
when using "separate queries".
In example2 there's a comment:
WP_Query( $args ) = wp_reset_postdata();
AND
query_posts ( $args ) = wp_reset_query();
And really you should never use wp_reset_query
because you shouldn't use query_posts!?
In the WP Codex it states that you should use wp_reset_query()
after a custom loop (first example) http://codex.wordpress.org/Function_Reference/wp_reset_query
Is the codex wrong then?