How To Add Related Posts In WordPress Without Plugin?

Related Posts in WordPress means, straight at the end of article, there will be some set up of links collected from website to show about read more about the same related topics. In this article we will learn about how to create related posts without any code knowledge. Even if you learn it from other articles from internet still the use of code and installation of it is necessary to show related posts.

In this article we will learn about how to show, related posts of the article, at the end of post without adding any additional code. In this article, we will learn about to show same category posts.

Update WordPress to its latest version:

First, update WordPress to its latest version. It is necessary to use the Gutenberg code editor while editing the post editor. From, WordPress 5.0 onwards, Gutenberg post editor is the default for editing and posting of the article. It is necessary to add the latest post block inside the post editor.


It is necessary as it helps to segment entire posts into different blocks so that easily you can add and rearrange blocks to enhance posts formats. Open Posts and then Add New from the sidebar of WordPress Administration, Now, write down the post and at the end of post add a new block by press space and then reach to a new para and then click on + sign to each to different blocks and from there choose Widgets and then choose Latest Posts.


Now, latest posts of yours website will show up. Now, we will change it to related posts. Make the heading as Related posts. Now, click on Latest Posts block. Then, go to setting of post editor and from there choose block. Now, from the latest post setting and its category setting choose the category from which you want to show related articles.

Generally it is a good idea to choose the same category in which you want to show up related posts. So, choose the similar category of which the article is related. Now, you will see, instead of latest posts, now you have last five or ten or more posts of the same article you choose from drop down menu of latest article settings of block at the settings of post editor of WordPress administration.

Now, you will see the related article of the similar article of the posts and that will present a better search engine optimisation practices and that too without any additional code inserted inside WordPress administration. Always remember to add the same category of the post to the related post or say the latest post and change the category of the latest post into the same as that of the post.

Category of post
Post Category

As the above image suggests the post category of this article is customization and the latest post category is chosen into customisation to convert the latest or related article of the post to show last ten customization posts.

In this tutorial we learn about how to convert Latest Post block into Related Post block and show related article from the same category of the post category. In this way we do not have to edit any file or add additional code to make heavier website. Sometime, by adding additional codes or third party plugins there are chances of security infringement of yours site. In this tutorials I let you understand, how to add related posts under each posts without any additional code or plugin.

Related Posts:

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.