WordPress.org

Support

Support » Themes and Templates » Multiple querys using the same loop.

Multiple querys using the same loop.

  • yekxmerr

    @yekxmerr

    Hello guys, i’ve just a small question about multiple loops.
    I’ve the div1 with loop (wp_query) to display some posts from a category, and beneath there is div2 to display the same stuff from a different category. To display the data on the div2 i’ve used the loop from div1 and at the end i just wp_reset_postdata();

    Is this the right way to do it or it’s better to create another loop for the div2.

    Thanks

  • The topic ‘Multiple querys using the same loop.’ is closed to new replies.
Skip to toolbar