Forums

[resolved] How to do three loops within index.php for magazine theme (3 posts)

  1. robcub
    Member
    Posted 2 years ago #

    Hi, I want to create a magazine theme whereby the home page has the most recent post featured with a big image plus excerpt, the next 4 posts after that featured with a thumbnail images plus excerpt and the next 5 posts listed with just excerpt.

    All of these will be regardless of category.

    What I want to know is how to specify the posts within the loop. I've found a great trick here: http://www.smashingmagazine.com/2009/06/10/10-useful-wordpress-loop-hacks/ see #2 - two loops using showposts to display the numbers of posts and then arrays and post-not-in to stop repetition.

    Can I do this with three loops? Am I on the right lines?

    Thanks.

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    You can use as many loops as you need--here's an example using 3
    http://www.daobydesign.com/blog/2007/07/modifying-wordpress-front-page/

  3. robcub
    Member
    Posted 2 years ago #

    Thank you, MichaelH, that looks 100% like what I was looking for!!! You're a star :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags