How to Show Related Posts for Custom Post Type in WordPress?

Key Takeaways

  • Nexter Blocks includes a Post Listing block that allows users to display related posts for custom post types.
  • Nexter Builder enables users to create single post templates by selecting 'Single Page' from the template dropdown.
  • Users can customize the Post Listing block by selecting their custom taxonomy, such as Book Authors, to show related posts.
Table of Contents

Are you looking to display related posts for your custom post type in WordPress? This is a great way to keep your readers engaged and interested in your content. By showing them posts that are related to the one they are currently viewing, you can encourage them to stay on your website longer and explore more of what you have to offer.

One easy way to accomplish this is by using the Post Listing block from the Nexter Blocks. This powerful block makes it easy to display related posts for your custom post type, and you can customise the look and feel to match your website’s design.

To check the complete feature overview documentation of the Nexter Blocks Post Listing block, click here.

Requirement  – This block is a part of the Nexter Blocks, make sure its installed & activated to enjoy all its powers.

To display related posts for a custom post type, you first need to have a custom post type with a corresponding taxonomy and a few posts assigned to it.

You can use any CPT plugins, such as Advanced Custom Fields (ACF), Custom Post Type UI, Pods, Custom post types etc. to create your custom post type and taxonomy.

For example, we have a custom post type called Books and taxonomy Book Authors. We want to show related posts based on the book author’s name on the book single post page.

To create the single post template for the custom post type, you can use the free Nexter Builder.

To do this, from the Dashboard,

1. Go to Nexter Settings > Theme Builder > Add New Template.

2. In the popup, select Single Page from the Select Template dropdown.

3. Then, in the Name of Template field, add the template name.

4. Then, click on the Next button.

5. On the next screen, you have to set the appropriate display conditions. From the Include/Exclude dropdown, ensure that Include is selected, and select your custom post type option for instance we’ll select All Books

6. Once done, then click on the Create button and publish the template.

Now once you have created the single post template, add the Post Listing block, and select Single Page Related Posts from the Post Listing Types section.

From the Select Post Type dropdown, select your custom post type. For instance, it is Books here.

Then in the Query tab, select your custom taxonomy from the Taxonomies dropdown, in our case, it is Book Authors.

post listing layout single page custom post type new

Then select the appropriate style and layout from the Style and Layout, respectively.

Now you should be able to see related posts on a single post page based on your custom taxonomy.

Note: Make sure to use other single post blocks to ensure that your page content is displayed correctly.

You can fine-tune the settings and style from other options.

Also, check How to Show Related Post by Child Category in WordPress.

About the Author

Photo of Aditya Sharma CMO of NexterWP
CMO at POSIMYTH Innovations · NexterWP · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordpressThemesElementorn8nAIClaudeAutomationServer

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What should I do if the Post Listing block isn't showing related posts?

If the Post Listing block isn't displaying related posts, ensure that your custom post type has posts assigned to it and that the taxonomy is correctly set. For example, if you're using a custom post type called Books, make sure there are multiple posts under the Book Authors taxonomy. Additionally, confirm that the Post Listing block is properly configured to pull from the correct post type and taxonomy.

What is the best way to customize the appearance of related posts?

To customize the appearance of related posts, use the Style and Layout options within the Post Listing block settings. You can select different styles and layouts to match your website's design. This customization is essential for maintaining a cohesive look and feel across your site, ensuring that related posts integrate seamlessly with your overall theme.

Are there any limitations when using Nexter Blocks for related posts?

One limitation when using Nexter Blocks for related posts is that it requires the custom post type to have a corresponding taxonomy. If your custom post type lacks a taxonomy, the Post Listing block won't be able to filter and display related posts effectively. Ensure that your custom post types are set up with the necessary taxonomies to take full advantage of this feature.

How can I ensure that my related posts are relevant to the current post?

To ensure that your related posts are relevant, set the Post Listing block to query based on the custom taxonomy associated with your posts. For instance, if you're displaying related books, select the Book Authors taxonomy. This way, the related posts will be filtered based on the author of the current book, keeping your content contextually relevant and engaging for readers.

Last reviewed: April 14, 2026

Related Docs