Query posts skip most recent in each category
I’m looking for a bit of help using a custom query. I already know the basics and have done a bit of homework on the codex, but I can’t figure this one out. Basically I want to query all most recent posts, in no particular order, including every category. Your basic blog layout. I’ve already got a sort of “widget” higher up in my page which displays the 1 most recent post from 4 specific categories. There’s another feature up there which uses stickies to display featured posts.
Now, in order to avoid duplicates, ideally I’d like to exclude all posts which are called earlier up using the stickies function (I can already do this) -AND- exclude all posts which are displayed on the widget, mainly the 1 most recent post from 4 specific categories.
… Is this even possible? I have my 4 “featured” cats in variables, so I can pass them to my query as required, but I can’t figure out how to “jump” the first post from each category and loop the rest (while keeping the stickies out and “older posts” navigation in… ouch).
If any one out there can help me, it’d be golden. I’m using a slightly modified theme from elegantthemes.com. You can view my work in progress at http://wordinprogress.com/dev.
Thanks in advance. 😉
- The topic ‘Query posts skip most recent in each category’ is closed to new replies.