Exclude a category from ‘the loop’
-
How can I implement this idea:
I want the lates post from the categorie ‘portfolio’ and I want the latest post that is NOT IN the categorie ‘portfolio’.
The first one is simple, I simply do this before ‘the loop’:
query_posts(‘category_name=portfolio&showposts=1’);
But how do I accomplish the second issue? It’s no problem to run 2 loops.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Exclude a category from ‘the loop’’ is closed to new replies.