Skip to content

Instantly share code, notes, and snippets.

@adapicom
Created September 20, 2012 17:49
Show Gist options
  • Save adapicom/3757343 to your computer and use it in GitHub Desktop.
Save adapicom/3757343 to your computer and use it in GitHub Desktop.
WP Query Posts Exclude Category
<?php query_posts('cat=-6&showposts=8'); ?>
<?php while (have_posts()) : the_post(); ?>
<?php endwhile;?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment