Assigns tags and/or categories to posts containing specific text strings, handy for filtering within the loop.
An example of query_posts():
<?php query_posts("cat=-10&paged=$paged") ?>
Here's a cleaner version excluding posts tagged with tag ID 42:
<?php $args = array( 'category__not_in' => array( 10 ), 'tag__not_in' => array( 42 ), 'paged' => $paged, ); query_posts($args); ?>
Requires: 2.8 or higher
Compatible up to: 3.4.2
Last Updated: 2012-11-5
0 of 1 support threads in the last two months have been resolved.
Got something to say? Need help?