WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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

Your Answer


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.