<html><head></head><body bgcolor="#FFFFFF"><div>It has nothing to do with using my plugin or not. It's something even my plugin can't fix :-)<br><br><div>Best,</div><div>Joost</div><div><br></div>Sent from my iPhone</div><div><br>On 6 mrt. 2012, at 23:14, Emil Uzelac &lt;<a href="mailto:emil@themeid.com">emil@themeid.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><p>If they do not use your plugin would this hurt the SEO?</p>
<div class="gmail_quote">On Mar 6, 2012 3:47 PM, "Joost de Valk" &lt;<a href="mailto:joost@yoast.com">joost@yoast.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

                <div>
                    Hi all,
                </div><div><br></div><div>tldr version: I would like a guideline that tells theme developers to <i>not</i>&nbsp;include a rel=canonical link in their theme as it hurts people more than it helps in a lot of cases.</div>
<div><br></div><div>long version:</div><div><br></div><div>As some of you probably know, I do a lot of SEO consultancy. Some of it is related to people who have suddenly lost all their rankings and want me to help fix it for them. Today I helped out a blogger, unpaid because I just liked his blog as it was about children with Down Syndrome.&nbsp;</div>
<div><br></div><div>He had recently switched themes <i>and </i>started using my WordPress SEO plugin, and of course he was blaming my plugin for his sudden loss of rankings. What I found out though, was that the theme had the following rel=canonical link in the header.php:</div>
<div><br></div><div>&lt;link rel="canonical" href="&lt;?php echo home_url(); ?&gt;" /&gt;</div><div><br></div><div>above the call to wp_head. This was causing each individual post to have a canonical point back to the homepage. Now you should know that Google especially sees a canonical as somewhat of a "soft 301 redirect". It basically takes a page that has a canonical pointing elsewhere out of the rankings. The effect is quite dramatic.</div>
<div><br></div><div>This was a premium theme, whose authors I have since emailed. It got me thinking though: is this in the <a href="http://WP.org">WP.org</a> guidelines? Apparently, it's not. WordPress itself adds a rel="canonical" through wp_head on single pages, and there's a patch in Trac to add it on more pages. There are several themes in the repository though that have absolutely 100% wrong canonical links in their header.&nbsp;</div>
<div><br></div><div>This one:&nbsp;<a href="http://wordpress.org/extend/themes/digu" target="_blank">http://wordpress.org/extend/themes/digu</a>&nbsp;is an example. It's not popular and hasn't been updated in ages so I wouldn't normally care too much, but I wanted to use it as an example. It has the following code:</div>
<div><br></div><div><div>&lt;?php if(is_single()){ ?&gt;&lt;link rel="canonical" href="&lt;?php echo get_permalink($post-&gt;ID),"\n";?&gt;" /&gt;&lt;?php }?&gt;</div><div>&lt;?php if(is_home() || is_tag() || is_category() || is_month() || is_year()){ ?&gt;</div>
<div>&lt;link rel="canonical" href="&lt;?php bloginfo('url');?&gt;" /&gt;&lt;?php echo "\n"; }?&gt;</div><div>…. snip ….</div><div>&lt;?php } ?&gt;</div><div><br></div><div>Using that theme on a live site could kill your rankings instantly, as it would make all category listings etc have canonicals linking back to the homepage. In most cases this would prevent Google from spidering the links to the posts on those pages.</div>
<div><br></div><div>Now some themes, like Thematic and Hybrid, have somewhat more sensible canonical functions, which makes this a hard discussion. I would vote to call it plugin territory though and keep it out of themes completely. Would love to hear your opinions.</div>
<div><br></div><div>Best</div><div>Joost</div><div><br></div></div>
                <div></div>
            <br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>theme-reviewers mailing list</span><br><span><a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a></span><br><span><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a></span><br></div></blockquote></body></html>