How to: disable search engine indexing on a single post/page

By | October 24, 2013

Every WordPress blogger loves Search indexing But there might be some pages or post which should not be indexed.By adding this code you can just stop search engine indexing that.

To achieve,First get the page or post id.If your sure about the post id.Then update the post id of your post in the code below.Example id used 10.

< ?php if ($post->ID == 17) {
    echo '';

Then add the code in between <head> and </head>.This can be found in your header.php file.That’s it now search engine can not access this information for that page.

Leave a Reply

Your email address will not be published. Required fields are marked *