WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Doc's Auto-tags

Assigns tags and/or categories to posts containing specific text strings, handy for filtering within the loop.

Great, my newly saved posts are being auto-tagged. How do I filter posts by tag within the WordPress 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
Downloads: 1,477

Ratings

5 stars
5 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1