Defective Themes: Duplicate Content

Talking to Rob about his nifty architecture blog search engine, I realized just how important things like the Duplicate Content Cure Plugin are. Not just for fear of being kicked out of google, but because it makes your search results real. By default, your monthly, category, tag, and author pages (if they exist) show up, and force your relevant blog posts ‘below the fold’. Worse still, old articles won’t show up on category pages, despite being the reason a person landed on your blog. That’s exactly what happens with a search engine that searches only blogs, without using google’s blogsearch: pages and pages of archives, before you get to actual posts.

So, the plugin is nice, but you can also do it in themes, just add:

 <?php if ( is_category() || is_archive() || is_search() || is_author() ) { ?>

    <meta name="robots" content="noindex,follow"><?php

} ?>

<?php if (function_exists('is_tag')) { if ( is_tag() ) { ?>

    <meta name="robots" content="noindex,follow">

<?php } } ?>

to header.php. The UTW stuff (is_tag()) is a little annoying, but other than that, it’s boilerplate.

Advertisements