I would like to show all posts but only exclude the NEWEST post from the 'Featured' category, other posts from this cat should display. Any idea what I should add to the loop to achieve this? I want all other posts from other cats to be displayed aswell!
|
A while back i posted a simple function that gets latest post in a certain category:
So once you have that function you can use use WP_Query or query_posts and using the
just change $CAT_ID to the actual category id |
|||
|
|
|
Since by default the loop will retrieve the posts in descending order by date, you can do something like the following: Outside the loop:
Inside the loop:
The first time a post from the Featured category is encountered (i.e. the most recent) it will be ignored and the Edit: To account for pagination you could change |
|||||||||
|
