WordPress.org

Ready to get started?Download WordPress

Forums

Multiple querys using the same loop. (1 post)

  1. yekxmerr
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic