---
title: "How to Show Related Posts for Custom Post Type in WordPress?"
url: https://qa.nexterwp.com/docs/show-related-posts-for-custom-post-type-in-wordpress/
date: 2023-05-06
modified: 2026-04-14
author: "Aditya Sharma"
description: "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..."
image: https://qa.nexterwp.com/wp-content/uploads/2024/05/show-related-posts-for-custom-post-type-in-wordpress-1024x519.jpg
word_count: 473
---

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

## Key Takeaways

- Utilizes the Post Listing block from Nexter Blocks to display related posts for custom post types in WordPress.
- Requires a custom post type created with plugins like Advanced Custom Fields (ACF) or Custom Post Type UI to function effectively.
- Employs the free Nexter Builder to create single post templates and customize display conditions for related posts based on taxonomy.

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](/docs/post-listing-block-settings-overview/).

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

[LIVE BLOCK LINK](https://qa.nexterwp.com/nexter-blocks/listing/wordpress-post-listing/)

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)](https://wordpress.org/plugins/advanced-custom-fields/), [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/), [Pods](https://wordpress.org/plugins/pods/), [Custom post types](https://wordpress.org/plugins/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](https://qa.nexterwp.com).

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*.

![](https://qa.nexterwp.com/wp-content/uploads/2023/05/post-listing-layout-single-page-custom-post-type-new.gif)

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*](https://qa.nexterwp.com/nexter-blocks/builder/wordpress-blog-builder/)* 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](https://qa.nexterwp.com/docs/show-related-post-by-child-category-in-wordpress/).