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

Cover image © Lady Alec

Related posts:

  1. Most Essential Blog Content Tips
  2. Quick SEO Tips: Taking Remedial SEO Action Using GWT

About the author:

I've been doing SEO for 15 years, affiliate marketing for 12 and starting arguments since the day I was born.. Follow him on Twitter / Facebook.