Related or similar posts

Thursday, July 5

tagged as ,

in Blogging

Easy and friendly navigation can’t be bad.

I’ve been investigating this concept of having similar or related posts being listed in the sidebar. I’ve ummmed and ahhhed over whether it’s actually useful and I’ve decided that it may be useful for some posts and for others it will be useless, mainly because those posts were fairly useless to begin with. I think anything to make navigation around a website easier and friendlier is worth a try.

So, I’ve installed the Similar Posts plugin, which seems to be fairly robust even though it’s a beta version. This plugin relates posts according to their content (and possibly their titles as well). There is another popular plugin Related Entries (for which there are a lot of outdated links for around the place). Related Entries uses the pretty permalinks and their usage of the post titles to assess relatedness, which wouldn’t be particularly useful for me because I haven’t been in a habit of giving my posts good descriptive titles.

To implement the Similar Posts plugin I put the code:
<?php if (is_single()) : ?>
<li>
<h2>Related Posts</h2>
<ul><?php similar_posts(); ?></ul>
</li>
<?php endif; ?>

in my sidebar.php (after installing the plugin of course) so that the list of related posts only appears on single post pages. It just seemed to make sense to do it that way.

Upon a bit more investigation I found a text widget that allows you to insert php code into the sidebar called ExecPHP. I probably could have used that to insert the list in the sidebar, which would save myself any troubles in the event of an update to the theme I’m using.

There’s a good chance that posts will be linked to that have very limited relatedness, but hopefully the very related ones will be identified as well. :)

{ 1 trackback }

Who knew a blog anniversary could be so exciting?! — This and that
Tuesday, September 11 at 22:20

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Want to show some code in your comment? Encode it first so that WordPress doesn't strip it away.

Read the comment policy.

Previous post: Being sick

Next post: Perched