SEO Egghead by Jaimie Sirovich: A blog about SEO, written for nerds, by a nerd.

Choose a Topic:

» Suggest a topic or buzz to cover; if I write about it, you'll get credit with a link in the post!

Tue
14
Nov '06

3 WordPress Hacks For SE-Friendly Blog Archives

Your default WordPress installation has a problem.  Your posts slowly get pushed into "pagination death" as they age; your older trusty content gets buried deeper and deeper internally.  Furthermore, duplicate content issues plague your category and main listing pages.

Slowly, but surely, every old post in your WordPress blog gets buried under 50 pages of other posts.  Slowly, but surely, all of the duplicate content adds up.

I saw this post on Digg.com today, and although it has merit, it doesn't dive into gory technical details like I will here.  There are really only 2 or 3 things you have to do to improve the SE-friendliness of WordPress substantially:

1. Change the pagination to look like this:

I demonstrate how to do for WordPress step-by-step in this post with a simple plugin and a few bits of code.  This keeps the posts less-buried within your blog's link-structure.  Check it out.

2. Eliminate most of the duplicate content:
This is tougher.  Let's talk about duplicate content for a moment.  Ideally, content would only appear at one URL to avoid duplicate content in every case.  This is not really possible, so let's be realistic.

The logic I will suggest is that one should show the full content only on the actual permalink page (the post's page), and the home page for the most recent posts.  All other pages will only show titles and excepts.  To do this, you must modify your wordpress template in "/wp-content/themes/{your-theme}/index.php."  The modification will look something like this:

<? if (is_home() && (!$paged || $paged == 1) || is_search() || is_single() || is_page()): ?>

<div class="entry">
                
<?php the_content() ?>

<? else: ?>
                
<small>Archived; click post to view.<br>
<b>Excerpt:</b> <?= substr(strip_tags($post->post_content), 0300); ?> ... </small>
                
<? endif; ?>

It basically says what I said above, just using PHP.  Doing these 2 things will help your site get indexed properly. 

Lastly, you should probably also do the obvious, and create a site map page.  I guess that isn't a hack at all, but I recommend the following plugin:

http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/

Kudos to Dagon Design for such a great plugin that I didn't have to write.  You could also create a Google and Yahoo site map, but I don't regard that as strictly necessary.

So get crackin'.  Leave a comment if you have questions.

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Furl
  • Reddit
  E-Mail This Post/Page

9 Responses to “3 WordPress Hacks For SE-Friendly Blog Archives”

  1. kev strong Says:

    Thanks Jaimie :)

  2. Jeremy Luebke Says:

    Per #2

    I actually got the code to work by only editing the archive template though the wordpress admin. It still leaves the full version on the sub pages of the home page, but I deny robots indexing anything but the homepage, category pages, and permalink page anyway. So no need to actually edit the index file.

  3. bongobelly.com | web/dev, For everyone. » Blog Archive » 3 WordPress Hacks For SE-Friendly Blog Archives Says:

    [...] Make your old content more accessible. http://www.seoegghead.com/blog/seo/3-wordpress-hacks-for-se-friendly-blog-archives-p162.html [...]

  4. Luv2Muff Says:

    Hi Jaimie

    I am having trouble implementing point 2, in to my index page which looks as follows:

    Could you give me a few pointers?

    Thanks,

    Gary.

  5. susie Says:

    Thanks for the hack and the pagination plugin. I did not realize that WP is not optimized right out of the box. So, this week I had a site drop into Google's supplemental results. I hope these changes and others will help restore my placement.

    I noticed you don't often reply to comments, but here goes:
    Why is your hack programmed not to effect search results?
    How long will it take to get out of supplemental results?
    Are meta tags necessary for placement any more?
    Are pretty URL's beneficial for placement?
    Should I buy your book?

    Thanks for your help, continued success.

  6. izlesene Says:

    Thanks Jaimie :)

  7. minikbarbie Says:

    Thanks Jaimie

  8. Google Search URL parameters - Says:

    [...] Щях да забравя любителите на SEO за Wordpress - две чудесни идеи как да избегнете попадането на страниците в supplemental results WordPress subpages going supplemental: the fix и 3 WordPress Hacks For SE-Friendly Blog Archives [...]

  9. WordPress subpages going supplemental: the fix - SEO Blog - Joost de Valk Says:

    [...] 3 WordPress Hacks For SE-Friendly Blog Archives [...]

Leave a Reply