How to Show Related Posts in WordPress (Step by Step Guide)

How to show related posts in WordPress

Let’s face the fact! We all want our visitors to stay more time on our site. As it helps us to decrease the bounce rate and increase the average pageview time that eventually leads us to improved SEO performance.

And to keep our visitors engaged on our site, we can simply make a trick. That is showing them related blog posts while reading a particular blog on our site. Just think from a reader’s perspective. Don’t you find it helpful when other posts you were looking for unconsciously come automatically before your eyes?

Yes, right?

Then let me guide you on how to show related posts in WordPress site with ease. We’ll do it with and without using the WordPress plugins. So, follow us to the end, and let us reveal the whole trick.

Why You Need to Show Related Posts in WordPress

How to Show Related Posts in WordPress

As you know showing related posts in WordPress means, suppose, you are reading a post about 10 amazing places you should visit before you go old. Below that articles, there may be articles on 7 haunted places you should see or places to visit in South Africa or how to pack your bag for traveling, etc.

Showing related posts in WordPress, you can;

These are the key benefits you will get if you display related posts on your WordPress site. Remember, the more pages they view, and the longer they spend on your site, the more likely they are to convert against your site’s goals.

How to Show Related Posts in WordPress

Show related blog posts in WordPress

We can display related posts on a WordPress site following both of the ways – using and not using a WordPress plugin. You can choose whichever method you prefer.

At first, we will learn how to show related posts in WordPress without plugins. So, let’s get started!

Method 01 – How to Show Related Posts in WordPress without Plugin

You might be wondering why you will do it manually whereas there are numbers of plugins available to do the job.

Well, the main benefit is that you don’t have to rely on a third party (the plugin developer) for your blog to function. Another reason is that you’re not to take the risk of using a bloated plugin that can slow your site. Though it’s a very rare case, there is always a possibility to face the problem if you don’t use a trusted and authorized plugin.

So, use the below-mentioned code if you want to do it manually.

//for use in the loop, list 5 post titles related to first tag on current post
$tags = wp_get_post_tags($post->ID);
if ($tags) {
echo 'Related Posts';
$first_tag = $tags[0]->term_id;
'tag__in' => array($first_tag),
'post__not_in' => array($post->ID),
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>

Method 02 – How to Show Related Posts in WordPress Using Plugin

When you see articles below your content how do you want them to be? Do you want them to be random or to be related to the current article you are reading? You want the articles to be below your post or on the sidebar, footer, or header.

A WordPress plugin for related post determines these things. They help you organize those related articles by their category.

Here we are going to use Jetpack plugin to show related posts in a WordPress site.

Related posts by category

Jetpack is already a brand in the world of WordPress plugins. This works in diverse fields. This is famous for scrutinizing your posts and articles. The plugin was also featured in our annual list of best WordPress plugins

You can customize the settings of related posts in this plugin. You can add as well as exclude posts while showing related posts.


Step 01 – Install & Activate Jetpack Plugin

You already know how to install and activate a WordPress plugin. But then again, let’s see how to install and activate Jetpack on your site.

  • Go to your WP Dashboard > Plugins
  • Click on the “Add New”
Install jetpack
  • Now type “Jetpack” on the search box
  • Click on the Install button of Jetpack after getting the search result
  • Finally, click the Activate button to make it usable

Step 02 – Activate Related Posts

  • To activate the Related Posts module, select Jetpack > Settings from your WordPress menu
  • Then select the Traffic tab and scroll down to Related Posts
Activate related posts
  • Activate the button next to Show related content after posts to turn the related posts feature on
  • You can then choose from a couple of simple customization options, enabling you to Use a large striking layout, and add a Related title to the section.
Show related posts

Congratulations! Now you know how to show related posts in WordPress using the Jetpack plugin.

Bonus: Top Plugins to Display Related Posts in WordPress (Jetpack Alternative)

If you don’t want to use JetPack, there are plenty of other plugins to choose from. Here we are going to introduce 5 Jetpack alternative plugins to you so that you can choose any plugin other than Jetpack if you want to.

  1. Yet Another Related Posts Plugin
  2. WordPress Related Posts
  3. Inline Related Posts
  4. Contextual Related Post
  5. Related Posts Thumbnails Plugin for WordPress

Yet Another Related Posts Plugin

yet another related posts plugin

Yet Another Related Posts Plugin (YARPP) is a popular option for displaying related posts on a WordPress website. YARPP provides some impressive features and will give you more control over the look and position of your related post section than Jetpack.

YARPP lets you select whether you want to display posts, pages, and/or custom post types, using thumbnails or a list view. You can also add a related posts section under each blog post, in a sidebar, or in an RSS feed.

YARPP uses its advanced algorithm, which considers content, post titles, tags, categories, and custom taxonomies, to display relevant content to your readers.

WordPress Related Posts

WordPress related post plugin

WordPress Related Post plugin is one of the most powerful plugins to display related post under post content on single post or page or custom post types, its also support to display related post under excerpt on archive pages.

You can conditionally choose to display related content under excerpt or content by archive pages like tag, category, date, author, search page, and custom taxonomy pages.

Inline Related Posts

Inline related posts plugin

Inline Related Posts plugin is interesting. The name reflects how it works. Instead of showing related posts below your current content, this plugin shows the posts inside the content. This plugin is really easy to set up and makes the readers more absorbed in your content.

With more than 60,000 active installations, Inline Related Posts is already a popular plugin among those who need to show related posts on their WordPress site.

Contextual Related Post

Contextual related posts plugin

The word contextual in the name already hints you of its kind. This plugin brings out the posts that are related to the context of your text. It gives you a lot of options for controlling where your related content appears. You can automatically place them or manually place them using blocks, shortcodes, and widgets.

This is a completely free WordPress plugin that has already been installed actively 70,000 times so far.

Related Posts Thumbnails Plugin for WordPress

Related Posts Thumbnails Plugin for WordPress

This plugin gives you an easy way to add a related posts box with image thumbnails. If you’re just looking for a quick-and-easy solution, you’ll love this plugin. Moreover, it’s a free plugin.

However, it doesn’t include as many features as some other plugins. For example, you can base the relation on taxonomies (including categories and tags), but you can’t change the weighting or factor in other information.

Over to You

Passing Over the Mic

If you want to bind your readers to your site, the related post of your content is important. There was a time when coding was the only way to get this facility on the page. But WordPress plugin has changed the scenario. Now, a beginner can install a plugin and enjoy related posts by category in WordPress.


Having said that you can show related posts on your site using your coding skill as well.

Don’t forget to let us know your feedback regarding this article through the comment box below.

Wordpress Icon

Disclosure: WP Hive earns a commission when you buy through partner links. It does not influence the unbiased opinions of our writers. Learn more →

Share: icon

Saif Hassan

Product Manager by passion & profession. Lead Product Manager at weDevs, former PM @ Poptin. Passionate about writing & tech. He's an advocate of Human-Centered Design and believes that websites and the tools used to build them should be well crafted, intuitive, and accessible. Cyclist. Reader. A WordPress ninja 🥷, HCI expert & a design thinker 💡

Subscribe To Our Newsletter

Newsletter Subscription Form

Leave a Reply

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