
If you ever wanted to get a list of your blog posts that have no tags yet, here’s a nice recipe for you, where I’m going to show you how to easily create a custom loop and check out if your posts have tags or not.

If you ever wanted to get a list of your blog posts that have no tags yet, here’s a nice recipe for you, where I’m going to show you how to easily create a custom loop and check out if your posts have tags or not.
To get the list of un-tagged posts, simply paste this custom loop anywhere or your theme, or use a page template. This loop will only show posts that haven't been tagged yet.
<?php query_posts('orderby=title&order=asc&showposts=-1'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$tag = get_the_tags();
if (!$tag) { //Theses posts have no tags
the_title();
}
endwhile;
endif; ?>
That's all. Now, you can easily find which posts have no tags yet, and tag them!
Leave a Comment