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%

Related posts:
  1. Code To Display Scheduled Posts In WordPress Blog Hi, This is the code to display scheduled posts in...
  2. Code To Display Recent Posts from Specific Categories In WordPress Blog Hi, In many cases we do require to display the...
  3. List Of Post Tags in WordPress Blog Hi, These are the Post tags which can be used...
  4. How To Disable Tags On Posts Section Of WordPress Blog? Hello All, In order to disable tags on blog post...
  5. Code To Display Recent Posts In WordPress Blog Hello All, In order to display recent posts of wordpress...

Leave a Reply

You must be logged in to post a comment.