Multiple loops? for a three-column layout
I’ve searched through the codex and the forums, and have found some info that’s helpful, but none that seems to apply to my specific situation.
What I’m looking to do is have an index.php with a pinterest-style layout. I.E. multiple columns with posts in each. The code looks something like this:
<div class="left column"> -- posts here -- </div> <div class="center column"> -- more posts here -- </div> <div class="right column"> -- more posts here -- </div>
Normally this would be simple to do using just one Loop, but for formatting reasons, I need to have that HTML code separating the columns (I’m going for a pinterest-style layout). The posts to be displayed should be pulled from all categories. It would be nice to limit the number of posts displayed in each column, but I’d be happy with being able to limit the total number of posts displayed on the page (in all columns).
Do I need multiple loops to do this? If not, what code do I need to use in each column to be able to continue the Loop with the same arguments without duplicating posts?
- The topic ‘Multiple loops? for a three-column layout’ is closed to new replies.