How to: Avoid duplicate content in paged comments

March 6, 2009 at 10:46 am

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. Here’s how to avoid it.

Open your header.php file. Find the </title> tag and paste the following just above:

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

Allright, after you saved the file you can say goodbye to duplicate content!

Credits goes to Malcolm Coles for this awesome recipe!