Next Generation SEO Guide. 100% Free. 200% Effective

Tuesday, 16 February 2010

Playing Around With Easy Content Units & Wordpress To Mitigate Duplication

So I'm going to do a bigger post on the process of moving from Blogger to Wordpress and all the bits and bobs, stresses and headaches that go with it. But here's just a quick one for those people that block out category, tag and search pages due to the fear of duplication.

Well there's no need to!

What you can do is add content to these pages on a page by page basis. I want to show a unique head paragraph for specific category pages so that's what I've done on my Ganache and guest reviews category pages with the code within the archive.php template:

<?php if (is_category('guest-reviews')) { ?>
<p>The reviews below are from Guest Reviewers. Having just one reviewer may give a slanted perception of chocolate, so offering the site up to others to add their thoughts should give a more balanced scope of reviews.</p><p>Reviewers are chosen for their lack of bias or favouritism for a particular brand, but they may prefer certain types of chocolate so feel free to give them your feedback</p>
<?php } elseif (is_category('Ganaches')) { ?>
<p>Ganache is a smooth mixture of chocolate, cream, and butter. Generally, it is dipped in tempered chocolate and rolled in powdered cocoa, sweetener, or other coatings to create a truffle, though it is also frequently used as the centre of a bonbon. &raquo; Read more in the <a href="http://www.chocolatereviews.co.uk/chocolate-glossary/">Glossary</a>. &laquo;</p>
<?php } else { ?>
<p>Below you can see a list of reviews about <?php single_cat_title(); ?> - we hope you enjoy! </p>
<?php } ?>

It's not rocket science really. I'm crap at php but am learning the odd bit here and there. I've even started to put conditional EasyContentUnits in dependent in the category at the bottom - although I need to sort the formatting out. The code I used was similar:

<?php if (is_category('ganaches')) { ?>
[Your ECU php unit code]
<?php } else { ?>
<p>That's all for: <?php single_cat_title(); ?> - we hope you enjoy! </p>
<?php } ?>
I also use the excerpt option when posting to add a little snippet to appear in the search results (I block this) and meta description:

<h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>

<?php echo htmlentities(the_excerpt()); ?>

Now I'm working on changing the sidebar navigation dependent on what category the individual posts are in. Everything is possible if you put your mind to it.

TwitThis

Bookmark and Share

4 Comments:

At 16 February 2010 at 12:58 , Blogger Martin said...

Wow you have finally given in and joined the wp family. Some good tips there. Like you I am not great at php but it is really quite easy to do conditional sidebars etc to make every page unique

 
At 17 February 2010 at 05:48 , Anonymous Hamish said...

Hi Lee,

Great tip - I have deliberated many a time as to whether to block category pages in fear of duplicate content and I think you have come up with a great solution.

A plugin you might want to try is W3 Total Cache - you can minify some of the css and js files, although I have had issues getting it to work with the contact form 7 plugin - I just leave the css and js files alone.

Also, there are a couple of links on your Best Chocolate shops sidebar that are throwing errors - Thorntons and Hotel Chocolat are 2 of them.

Cheers,

Hamish

 
At 17 February 2010 at 08:44 , Blogger getvisible said...

Hi Hamish,

Doh I forgot to transfer that folder over! Thanks for the heads up.

Spending my illness-festooned day tweaking more category pages - its a brainless task really.

Let me know how you get on!

Lee

 
At 17 February 2010 at 09:25 , Blogger getvisible said...

I'm also going to look at just getting this content on to the first page of a category.

I saw the code somewhere, just need to find it again.

 

Post a Comment

Subscribe to Post Comments [Atom]

Home:







Another Affiliate Marketing Blog

Powered by Blogger


Get Visible - Search Engine Marketing A GET VISIBLE web site designed by McCoy - Freelance Web Design