Forums

Building a custom triple loop (3 posts)

  1. keko
    Member
    Posted 1 year ago #

    Hi,
    I have a problem within my loops, and hope someone will light up my path here.

    I'm trying to get 3 different loops to work in my homepage. (Actually, I'm not sure that three completely different loops is what I need, so any suggestion is welcome too!)

    My site has just two categories. I want to display the most recent post from each category on the homepage, and then just display a list of the next 6 posts excerpts. I can control what happens inside the loop (the_content, title, excerpt, etc etc), but can't get my whole setup to work.

    Should I have a first loop, with if/else statement for the first part and a second loop to display the headlines only? How do I tell the second loop NOT to display the two "featured" posts?

    Any ideas extremely welcome!

  2. StrangeAttractor
    Member
    Posted 1 year ago #

    Have you taken a look at Darren Hoyt's multiple loop tutorial (which led to his "Mimbo" magazine them)?

    I personally found it very useful.

  3. keko
    Member
    Posted 1 year ago #

    Thanks! Mimbo is very similar in terms of structure of what I´m trying to do, but wanted to do it myself. I wasn't aware of that tutorial :)

    I'll get to it right away.

Topic Closed

This topic has been closed to new replies.

About this Topic