Managed WordPress Blog

"Related posts and why you need them"

Posts giving lists of plugins are all too common, that is a list with a purpose – e.g. 10 useful plugins that you probably haven’t heard of. Every single plugin may add value. But unfortunately, a lot of plugin posts don’t really have the reader in mind.

The problem is that people like lists because they are lazy and don’t want to do the research themselves. Because of this, bloggers will go out of their way to produce them – even if the end result isn’t even of much value. This post was originally intended to feature several related posts plugins, but as I dug deeper into the available options, it became clear to me that one plugin stood head and shoulders above the rest.

So I decided instead to focus on that one plugin alone, and demonstrate how it can be utilized to return the best possible results for your blog.

Why Bother With Related Posts?

As a blogger, you want your visitor to do one of two things, in the following order of preference:

  1. Subscribe and/or purchase
  2. Keep reading

If someone doesn’t want to subscribe immediately, you want to keep them on site until they do. And presenting a list of related posts at the bottom of your content can help you achieve that. The logic is simple – if someone has read all the way to the bottom of your post, he or she may well be interested in reading more. Why not make it easy for them?

Introducing YARPP

Yet Another Related Posts Plugin (or YARPP for short) is the modestly-named plugin that we are focusing on today. It is by far the most popular plugin of its type available, with over 1.6 million downloads at the time of writing. Last week alone it was downloaded nearly 7,000 times.

The popularity of YARPP far exceeds that of any competitor, and whilst that does not alone guarantee it as the best option, its feature set and capabilities do.

If you want to learn a little more about how YARPP retrieves related posts with often unerring accuracy, check out this presentation by its developer, Michael “Mitcho” Erlewine:

You are of course welcome to check out the alternatives to YARPP. You can investigate the likes of nrelate Related Content and Related Post Thumbnails should you wish to do so. But in my humble opinion, YARPP is the best of all of them.

Let’s take a look at its settings and investigate why.

Appearance

Once you have installed and activated YARPP, the first thing you will want to do is make sure that it blends in nicely with your blog’s design. Its settings screen can be found rather conveniently under “Settings” in your sidebar. Let’s take a look at the “Display options” meta box:

Display Options

There are a few things to consider here:

  1. If you don’t want to display related posts directly below your blog’s content, you need to uncheck “Automatically display related posts?” and manually insert the PHP function within the relevant theme file.
  2. The default number of related posts is 5. The ideal number for you should be based upon a consideration of (a) how many posts you have on your blog in total, and (b) how many options you want to offer up (sometimes, less is more).
  3. You can choose to format how the related posts are displayed. The standard list format will suit most, and you can see an example of the code used in the top right.
  4. You have an option to show the excerpt. I would personally recommend that you keep things simple and ignore this.
  5. Results are best ordered by score, so I wouldn’t change the order results.
  6. The default display if there are no results is for a “No related posts” message. I think it makes more sense to simply leave this box blank, so that nothing at all is displayed if there are no related posts.
  7. If you choose to help promote YARPP, an attribution will be placed under the related posts on every page of your blog in which it is used. This is really messy – if you want to help out the developer, I would recommend making a donation instead.

Finally, there is another meta box for RSS display options, which follows the same format as the standard display options. I would recommend that you enable this option and spend a few minutes adjusting the settings accordingly. For those who read your blog posts in their RSS reader, it can be a great way of getting them onto your site.

You may feel that YARPP is conspicuous by the absence of a thumbnail option. My personal opinion is that a simple list of headlines is better than thumbnails, but you may of course think otherwise. If that is the case, you can look into creating your own custom YARPP template. If you are not technically-minded, the alternative is to use a plugin such as nrelate Related Content, which gives you graphical options for showing related posts. You will however pay for pretty thumbnails with a relative lack of accuracy in pulling related posts.

The “Pool”

Once you have finished beautifying your related posts list, you will want to consider whether or not particular posts should be excluded from what YARPP calls the “pool” – i.e. the list of posts from which YARPP selects. Doing so is simple.

The Pool

Above is what the “pool” for my blog looks like. If you cannot see such a box in your settings screen, you may need to select it as visible in the “Screen Options” tab to the top right.

As you can see, it is easy enough to omit specific categories and tags, should you wish to do so. You can also choose to include password protected posts, and omit posts that are longer than a specified number of months.

“Relatedness” Options

It’s not a word, but perhaps it should be. This meta box is where you determine how matches are found, and how relevant a result has to be in order for it to be displayed.

Relatedness

In case you didn’t watch the video above, each post on your blog is assigned a score by YARPP based upon its relevance to any other post. That score is assembled by combining individual relevance scores for the headline, content, categories and tags. The match threshold field allows you to determine how high a post must score before being displayed. The default is 5 – as you can see from the above field, I have it set to 3.

Setting an appropriate match threshold is entirely subjective – it largely depends upon (a) how relevant you want the posts to be, and (b) how many of them you want to show. The best thing you can do is start with the default setting and check a few posts on your blog by those criteria.

If you wish to change the way in which posts are scored, you can choose to exclude specific datasets (i.e. titles, bodies, categories and tags) from the algorithm.

Share This