How to block Google to index Certain posts in WordPress

raddix

Registered Member
Nov 16, 2014
69
18
Hi,

I am using self hosted WordPress. I have some posts which I don't want to show to Google. So, How I can block Google to index those certain posts ?

Thanks
 
Install SEO BY Yoast Plugin and in post settings edit the robots meta to noindex :)

Thats it
 
And if you want to block full category, you can block in code of site
Open your header.php file and paste the following code between the <head> and </head> tags:
<?php if ( is_category('8') || in_category('8') ) {echo '<meta name="robots" content="noindex">';}
 
There is also a plugin called Robots-meta that allows you to individually set any post/page nofollow/********/index/noindex etc. Very easy to manage,
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock