How to Show Related Posts on Your Blog

Displaying relevant posts to your blog readers may entice them to click and read another blog post while they are visiting your site.  WordPress uses Categories and Tags to allow you to group relevant content together.  There are two popular plugins that make use of these to display a series of links to other related content.

Yet Another Related Posts Plugin (YARPP)

The Yet Another Related Posts Plugin or YARPP for short is one of the most popular related posts plugins for WordPress.

Install the YARPP plugin by searching for “yarpp” on the Install Plugins admin page.

yarpp01

After the plugin is installed and activated it automatically displays links to related posts at the end of your blog post. Related posts are determined by the categories and tags you select when publishing a blog post. For example, here is a blog post before YARPP is installed.

yarpp-pre

After the plugin is activated you will see a “Related Posts” section automatically appears at the end of the blog post.

yarpp-post

The default display generated by YARPP is not entirely appealing so you will want to apply some tweaks to the plugin settings. Click on Related Posts (YARPP) in the Settings section of the left hand sidebar.

yarpp02

The default number of related posts to list is five but on some blogs with not much content only one or two related posts will be displayed. To increase this number you can lower the “match threshold” from its default value of five.

yarpp03

I also prefer to clear the check box so that excerpts are not shown in the related posts list.

yarpp04

And although it might be good karma to help promote the plugin on your site I find it just adds unnecessary clutter to your blog so I always clear this check box as well.

yarpp05

YARPP will also display related posts in your RSS feed by default, however this conflicts with some of the RSS feed enhancement plugins such as RSS Footer. To avoid these conflicts clear the check box for displaying related posts in RSS feeds.

yarpp07

WP Related Posts Plugin

WordPress Related Posts is another plugin that displays a list of related posts based on tags. This plugin will display the list in an RSS feed without conflicting with the RSS enhancement plugins such as RSS Footer.

Install the WordPress Related Posts plugin by searching for “wordpress related posts” on the Install Plugins admin page.

wprelposts01

After the plugin is installed it does not begin working until you configure it. Click on WordPress Related Posts in the Settings section of the left hand sidebar.

wprelposts02

Configure the plugin with the following settings:

  • Set the related posts title to “Related Posts:”
  • Choose “Random Posts” when no related posts are found
  • Set the no related posts title to “Other Posts:
  • Set the limit to 5
  • Tick the check box for related posts for RSS

wprelposts03

After you have configured the plugin click on the Update Preferences button. You can test the plugin using the excellent “RSS to HTML” tool at PlanetOzh.com. Enter the URL of your WordPress blog followed by /feed and click the Parse button.

wprelposts04

The output of your RSS feed is rendered in HTML for you to confirm that the related posts lists are being generated after each post.

wprelposts05

Your WordPress blog will now display related posts at the end of each blog post as well as in the RSS feed, and without conflicting with other useful plugins.

If you found this post useful please leave a comment below. To receive new blog posts automatically subscribe for free to the mailing list or RSS feed.

Leave a Comment

{ 9 comments… read them below or add one }

MJ Doyle May 4, 2009 at 7:33 am

I just installed it, thanks! I can see it working in the RSS feeds but nothing is showing up on my actual blog. Any ideas?

Thanks,
-MJ

Reply

Paul { May 4, 2009 at 7:41 am

MJ, which one did you install? I listed two plugins in the blog post.

Reply

MJ Doyle May 4, 2009 at 9:33 am

Sorry, I installed WP Related Posts.

Reply

Paul { May 4, 2009 at 8:10 pm

MJ, WP Related Posts (if you are following my instructions) will only display in the RSS feed. To get related posts into your blog as well, use YARPP (the first plugin I mention in the post).

You can use WP Related Posts to put related posts in the blog, but it required editing your theme code by ticking the box in the plugin settings.

But I suggest combining the two plugins to get related posts appearing in both the blog and the RSS feed.

Hope that is clearer.

Reply

MJ Doyle May 5, 2009 at 11:19 am

Thanks, I got it installed but now it’s showing a decimal number after each related post. Any idea what this is?

Reply

Paul { May 5, 2009 at 12:03 pm

Thats the “related” score that YARPP uses. It can help you if you need to tune the plugin. It is only visible to you when you’re logged in as your blog admin, regular visitors don’t see it.

Reply

MJ Doyle May 5, 2009 at 8:37 pm

Thank you so much for all your help and the post itself. I love your site and enjoy getting new posts in my email. You seem to explain things that no one else does.

Reply

Paul { May 5, 2009 at 8:48 pm

Thanks for your feedback MJ.

Reply

Jodi May 7, 2009 at 6:27 am

Thanks for the tips (I found you through the ProBlogger forum board)!

Reply