Avoid duplicate content in wordpress paged comments

March 12, 2009 · Print This Article

Introduced in WordPress 2.7, paged comments are great, especially when you have lots of comments. Thought, if your <title> tag isn’t optimized, your blog could produce some duplicate content, which is bad for SEO.

To avoid duplicate content problems, you need a different title and a different meta description. The easiest way to do this is to add ‘Page X’ into the title and meta description of the blog post.

Open your header.php file. paste the following code into your theme’s header just before the closing </title> tag:

<?php if ( $cpage < 2 ) {}
else { echo (' - comment page '); echo ($cpage);}

After you saved the file you can say goodbye to duplicate content.

Your choice for site templates and wordpress themes


Got something to say?

You must be logged in to post a comment.