WordPress.org

Ready to get started?Download WordPress

Forums

Multiple loop location (1 post)

  1. myrok24
    Member
    Posted 1 year ago #

    Just curious: What do you think is the best location for multiple loops (querys.).
    Let's say i have 3 types of custom posts; type1, type2 and type3. And i want to show all three on a (home)page. Let's say the latest post of each one.

    Question: should i load these:
    - All within one (page.)php file (multiple loops)
    - Create separate loop files and then refer to each one within de (page.)php file.
    - Or through widgets

    I'm asking this, because i'm testing the Roots theme. And this one uses separate loops by default.

    Thnx in advance!

Topic Closed

This topic has been closed to new replies.

About this Topic