How To Disable Search Engine Indexing For A Single Post In WordPress Blog?

Posted by


Many wordpress users do not want to indexed their images or some posts. We have already discussed about the images. For the posts, Open your theme’s header.php file and add this code between the <head> and </head> tags:

<?php if ($post->ID == 8
echo ‘<meta name=”robots” content=”noindex”>’;

In this example, whose post ID is 8 can not be indexed by search engines. You can change the post ID according to your requirement. Also can add more than one posts in the list.

That’s it!


Shane G.

Leave a Reply

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