query_posts and exclude tag
-
I’ve searched hi and low for a way to run a query_posts and exclude posts with a specific tag. The way I’m using: Say i have a list of clients or work in a portfolio situation. I’d love to just be able to add the tag “archive” and have it hidden from my main query. What i’ve resorted to is this:
$posts = query_posts($query_string . '&tag=current+current&orderby=title&order=asc&posts_per_page=-1');
So now i tag everything with “current”, instead of just tagging the archives with “archive”. It works, but it’s kind of heavy handed and would love a more elegant solution. Thanks in advance
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘query_posts and exclude tag’ is closed to new replies.