Hi,
In order to find and display the untagged posts in blog, you need to use this code:
<?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; ?>
Add this code in any template where you want to display untagged posts of the blog.
That’s it!
Thanks,
Shane G.
Popularity: 1%














