Exclude tag from WP_Query
im doing a query for show the last post form a category
and i have:
<?php $recent = new WP_Query("cat=5&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
but i want to exclude the tag “featured” from there
i try with tag=-featured and tag=-8 (wich is the ID) and its not working
- The topic ‘Exclude tag from WP_Query’ is closed to new replies.