How To Disable Search Engine Indexing On A Particular Category In WordPress Blog

Posted by


Many wordpress users do not want to index their images or some posts or category. We have already discussed about the images and posts. In this section I have described about the category indexing.

First, get the Category ID which you like to not indexed by search engines. Now, open your header.php file and add this code between the <head> and </head> tags:

<?php if ( is_category(‘3’) || in_category(‘3’) )
echo ‘<meta name=”robots” content=”noindex”>’;

With this code, no post from category with the ID 3 as well as category pages will be indexed by search engines crawlers.

That’s it!


Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.