Support » Themes and Templates » wp_reset_postdata function

  • Hello,

    I’m using a new WP_Query object to create multiple loops in my theme. I see on the codex that it says to use wp_reset_postdata when creating a new query which resets the $post object to the current post. This is only really necessary if I want to use the default the_post(); and such correct? I could just as well not include that and just create other WP_Query objects without affecting the default $post object. Am I right?

  • The topic ‘wp_reset_postdata function’ is closed to new replies.