How to Hide Your Single Post From Search Engines
Have you ever a semi-private post? If your answer is ‘yes‘ you can hide your post from search engines. How? Very Simple. It’s only 3 line code. With this code you will add a noindex tag to your post. Firstly you have to know your post ID. It’s important for this code. If you already know, lets begin…
Open your header.php and add this code between <head> and </head> tags.
<?php if ($post->ID == xx) {
echo '<meta name="robots" content="noindex">';
} ?>
Change xx with your post’s ID.
That’s All. Have a nice day!
For Technorati:2iu6n4qx9s
