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

Hi Eric,

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

I use:
Code:
<link rel="canonical" href="http://www.mydomain.com[category.link]" />
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
Code:
<link rel="canonical" href="http://www.mydomain.com/store/category/mycategory/2/" />
etc...

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...

Eg:
Code:
<?php if (!empty($category->description)){ ?>
[store.if page="off"]
<h2>[category.name]</h2>
<p>[category.description]</p>
[/store.if]
<?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.