Query posts options (3 posts)

  1. blicht454
    Posted 4 years ago #

    Hello, I'm trying to find a simple way to query posts where the first three are placed in one div and the rest are placed in another. Any ideas?
    Thank you!

  2. Michael
    Forum Moderator
    Posted 4 years ago #

    how simple depends on your existing theme;

    you could try and work with a counter variable and some conditional statements within the loop, to check for the first and third post, and to add the div(s) accordingly.

    please post a link to your site for more detailed suggestions.

  3. blicht454
    Posted 4 years ago #

    The site is still not online, so unfortunately I can't post a link yet. I'm building the theme from scratch.

    Can you explain how a counter variable would work? I've never done that before.

    What I'm trying to do is use query posts to find the first three (most recent) posts on the first pass, and then all other posts on the second pass...

    Let me know if that makes sense.

Topic Closed

This topic has been closed to new replies.

About this Topic