Multiple loops; no duplicates entirely
-
Hey! I’m building a new homepage loop for a child theme (based off TwentyTen, yes) that’s a bit more Magazine-ish. (The site I’m running is a TV review site, just so it can be easier to understand category titles.)
As such, there are about four areas of posts. The top is just one featured post, below it are two columns with about five different posts, respectively, from separate categories (however these amount to about four loops because it’s one image and heading and then four just-headlines), and then a final loop below all of it which is just a standard archive of latest posts.
My problem is duplicate posts. I want to get rid of them across the board (except maybe the latest posts) but can’t figure it out. Using what I found in the codex, if the most recent post is a featured post but also in a category for one of the columnized loops, then it just disappears from the column. That’s good, but it doesn’t replace it with the next post…which is sort of what I’m looking for. I don’t want a blank space!
I hope some of this makes any sense. Here’s a pastebin of my loop code:
Any help would be greatly appreciated! (I’m also trying to figure out pagination, but that’s for another post!)
- The topic ‘Multiple loops; no duplicates entirely’ is closed to new replies.