---
title: "How to Show Related Products on a Product Page in WordPress? (Based on Categories & Tags)"
url: https://nexterwp.com/docs/show-related-products-on-a-product-page-in-wordpress/
date: 2023-08-09
modified: 2026-04-14
author: "Aditya Sharma"
description: "Looking to increase your WooCommerce store's revenue? One of the best ways to do this is by showing related products on the product page. By doing so, you offer the..."
image: https://nexterwp.com/wp-content/uploads/2024/05/show-related-products-on-a-product-page-in-wordpress-1024x519.jpg
word_count: 297
---

# How to Show Related Products on a Product Page in WordPress? (Based on Categories & Tags)

## Key Takeaways

- Nexter Blocks includes a Product Listing block that shows related products based on category and tags.
- Users can select from three options for displaying related products: Based on Category, Based on Tag, or Both.
- The free Nexter Builder allows users to create single product templates for their WooCommerce store.

Looking to increase your WooCommerce store's revenue? One of the best ways to do this is by showing related products on the product page. By doing so, you offer the customers a variety of options that are related to the product they are already interested in, thus increasing the chances of a successful sale. 

With the Product Listing block from the Nexter Blocks, you can easily show customized product listing as related products based on category and tags on your single product pages.

*To check the complete feature overview documentation of the Nexter Blocks* Product Listing block, [click here](https://nexterwp.com/docs/add-product-listing-in-wordpress/).

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

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

You can use the free [Nexter Builder](https://nexterwp.com/docs/nexter-theme-builder-explained/) to create the single product template.

Now once you have created the single product template, make sure you’ve added some products to your WooCommerce store, then follow the steps - 

1. Add the Product Listing block to the template. 

2. Select **Single **from the **Type** section.

3. You can choose the basis for displaying related products by selecting an option from the **Related Post Type** dropdown. Here you’ll find three options - 

- **Based on Category** - This will show related products based on the product category.

- **Based on Tag** - This will show related products based on the product tag.

- **Both** - This will show related products based on category and tags together.

Select the option that fits your need.

![](https://nexterwp.com/wp-content/uploads/2023/08/product-listing-single-related-post-type-both-new.gif)

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

Now you should be able to see related products on a single product page based on category and tag.

Also, check [How to Show WooCommerce Product by Product Id in WordPress](https://nexterwp.com/docs/show-woocommerce-product-by-product-id-in-wordpress/).

## Frequently Asked Questions

**Q: What if the Product Listing block doesn't show related products?**
A: If the Product Listing block isn't displaying related products, ensure that it is installed and activated as part of the Nexter Blocks. Additionally, verify that you've selected the correct options in the Related Post Type dropdown, such as 'Based on Category' or 'Based on Tag'. If no products match the criteria, nothing will display, so check your product categories and tags for accuracy.

**Q: What are the best practices for styling the Product Listing block?**
A: When styling the Product Listing block, choose a layout that complements your product page design. Use the Style and Layout dropdown to select options that enhance visibility and user experience. A well-styled product listing can draw attention to related products, encouraging customers to explore more items, which can lead to increased sales.

**Q: Does the Product Listing block work with all WordPress themes?**
A: The Product Listing block is part of the Nexter Blocks, which is designed to work seamlessly with the Nexter Theme. While it may function with other themes, optimal performance and styling are best achieved when using it within the NexterWP ecosystem, ensuring compatibility and ease of use.

**Q: How do I customize the product listing for different product types?**
A: To customize the product listing for different product types, use the Related Post Type dropdown in the Product Listing block settings. You can choose to display products based on specific categories, tags, or both. This flexibility allows you to tailor the related products shown on each product page, enhancing relevance and potential sales.
