Support » Plugins » Hacks » 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
    any idea?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Exclude tag from WP_Query’ is closed to new replies.