Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I remember there used to be an option on WordPress to block comments from search engine indexing. I can't find it anywhere, though.

Does anyone have suggestions or alternatives? Thanks.

share|improve this question
add comment

2 Answers

Normally comments are part of the page (for content they belong to) and I don't think there are any conventions to block certain part of page from indexing.

At best you would need to separate comments to reside at separate URL from content and block indexing of such URLs via normal means (like robots.txt or meta tags).

share|improve this answer
add comment

To my knowledge, there is no easy way to achieve what you want. What I think you would need to do is two parts:

  1. Detect page views by search engine spiders
  2. In your page templates, only include include the comments when the viewer is not a search engine spider. Should be straightforward, but not trivial.

Good luck!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.