Related Posts

Go to Related Posts
Related Posts banner
27th May, 2018

Related Posts
By WPBrigade

Want to quickly show related posts at the end of each post? Don’t know how to code? Related Posts Plugin makes it trivial to include related posts.


After installing from the plugin repository, activate the plugin and head over to Sidebar > Related Posts. From here you can configure Related Posts.

Related posts will start working out of the box but there are some useful options you can set on the admin page.

Related Posts dashboard
Related Posts dashboard

This is what the options do:

  1. By default the related posts markup will be applied as a part of the get_content() output. Unchecking this means it won’t get applied via get_content(). You’ll need to put <?php get_related_posts_thumbnails(); ?> somewhere inside the loop.
  2. Outputs debug as HTML comments. Useful for figuring out what options are enabled, what is the query retrieving, etc.
  3. Display related posts on single posts only.
  4. Which post types to show the related posts on. By default, it will only show on the Post post type.
  5. If unchecked, you can select which categories to enable the related posts for.
  6. What categories should the display posts show for. Again, if unchecked you can individually select each category.
  7. Select the date after which the related posts should show.
  8. Change the related post title.
  9. The number of related posts to show.
  10. Default image to show if no featured image is set.
  11. Thumbnail source. Default is featured posts otherwise you can use a custom field attached to the post.

Luckily you won’t need to set anything as it works perfectly well out of the box.

This is how it looks like when using the default twentyseventeen theme:

Default related posts
Default related posts

It will show everything in a 3 column grid but there are options to change the layout and the styling of the related posts output.

There was another error before this but that was my mistake. Turns out, I forgot to remove the get_related_posts_thumbnails() method call. Remember to wrap that inside a function_exists() call next time.

Unfortunately there was another error. After changing the style settings something went wrong with the plugin and it started throwing syntax errors:

strpos errors
strpos errors

Disabling and reactivating the plugin removed the errors. I reckon the errors show up when certain options are selected under a specific condition.

Other than the options provided, you can also style the thumbnails inside the Thumbnail options page. In the admin options page, open the Style options and mess with the options to change the styling. You can also disable the styling provided by selecting the output style to list mode and checking the tick box next to it.

You can also change the relation based on which posts are shown from categories only to:

  • Categories and tags
  • Tags only
  • Random
  • Custom
    For custom, you can select category, post_tag, or post_format.

It would be awesome if you could filter the relationship via a filter instead of custom relationship settings provided.


Related Posts comes with heaps of options and you can modify the thumbnails, styles, relationship settings, etc. Unfortunately it seems to be a bit buggy.

I won’t recommend this for the time being.


Conditional logic No
Custom styles Yes - you can disable style output and style it yourself or use the inbuilt styling options


Comes with heaps of options but it seems like current implementation is a bit buggy.

  • No need to configure anything - works out of the box.

  • Heaps of styling options available.

  • Can break when certain options are selected in a certain combination.


Helpful disclosure

Our works are supported by earning an affiliate commision
when readers choose to purchase a plugin based our reviews.

Leave a Reply

Your email address will not be published. Required fields are marked *