Show posts but exclude a specific tag
I know there’s a few posts to this effect on the forum, but to be honest I’m feeling like a bit of a gumby because I can’t figure out how to make it work.
I am displaying all posts from one category with the following (please feel free to correct if it’s wrong).
<?php $section_headlines = new WP_Query('cat=6') ?> <?php if ( $section_headlines->have_posts() ) ... etc
How do I exclude a specific tag from this query? And where do I put it? Does it need to go in my if/while statement?
- The topic ‘Show posts but exclude a specific tag’ is closed to new replies.