View Single Post
Old June 20th, 2012, 05:37 AM
ayorofrance ayorofrance is offline
Join Date: Sep 2010
Posts: 430

Hi Eric,

I don't think your code above works as intended...

I use:
<link rel="canonical" href="[]" />
And this gives me canonical links which point back to the main category page on each page 2 - #

This ensures it's your main category page that gets the link juice and gets indexed...

With your code I think you will get canonical links that point to the page itself...

You will see
<link rel="canonical" href="" />

Which is not what you want...

You also want to restrict any articles/text you have on your category pages to only be shown on the first page...

<?php if (!empty($category->description)){ ?>
[store.if page="off"]
<?php } ?>
Just my two cents...
WordPress Security - Is your WordPress secure? Get our FREE checklist and find out.

Easy-Email - Access ALL your email accounts with one login & synchronize automatically on all your computers.