Get the list of wordpress post that have no tags yet

January 5, 2009 · Print This Article

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

To get the list of un-tagged wordpress posts, simply paste this custom loop anywhere or your wordpress 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.


Related articles:

Your choice for site templates and wordpress themes

Comments

Got something to say?

You must be logged in to post a comment.