• I’m looking for a (simple) straight forward solution for the following situation:
    I have a soccer website that contains pages for every youth team (+-20). I use a separate page template for that. I want to add a section with a loop according those teams (by adding a category for every team or maybe a category with tags).
    It will be clumsy to create a separate page template for all teams so I can add pages like category-under17. Otherwise I was thinking to create a conditional statement in the template and create a different loop when a page is loaded. But that would be huge statement.
    I guess there is nog possibility to create a conditional statement in de loop itself…

    At this moment i’m considering the seconde option, creating a huge conditional statement with about 20 different loops…
    But there must be an easeir way that may be more straight forward.

    Can onyone help?
    Thx!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Conditional loop on page template’ is closed to new replies.