---
title: "How to Show WooCommerce Product by Product Id in WordPress?"
url: https://nexterwp.com/docs/show-woocommerce-product-by-product-id-in-wordpress/
date: 2023-08-09
modified: 2026-09-28
lang: en
author: "Aditya Sharma"
description: "Categories and tags decide which products appear as a group. Sometimes you want exactly these three products, in this order, on this landing page. Listing product IDs pins the selection..."
image: https://nexterwp.com/wp-content/uploads/2024/05/show-woocommerce-product-by-product-id-in-wordpress-1024x519.jpg
word_count: 437
---

# How to Show WooCommerce Product by Product Id in WordPress?

## Key Takeaways

- Nexter Blocks Pro only renders the Product Listing block when Nexter Blocks Pro is active; with Nexter Blocks Pro deactivated, it shows nothing, not even a wrapper, products, or prices.
- Product IDs go into the include field as a comma separated list, and a published page with two IDs renders exactly two products and no others.
- Deleted or unpublished products drop out of the listing silently, so a page can end up showing fewer products than expected; for the opposite case, the post points to the exclude field.

Categories and tags decide which products appear as a group. Sometimes you want exactly these three products, in this order, on this landing page.

Listing product IDs pins the selection so nothing new drifts into it.

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

## Before You Start

- **Edition:** **Pro** — the Product Listing block needs Nexter Blocks Pro.- **Block to enable:** Product Listing, switched on under **Nexter > Blocks** in your WordPress dashboard.- **WooCommerce active, with published products.** The block reads your real catalogue, so an empty store renders an empty listing.- **The product IDs you want.** The ID is in the URL when you edit a product, as `post=123`.

## Video Tutorial

![A Product Listing showing only the three specific product IDs entered](https://nexterwp.com/wp-content/uploads/2026/09/product-listing-byid-fe.webp)

## Steps

- Find the **ID** of each product you want to show.

![Finding the product ID](https://nexterwp.com/wp-content/uploads/2026/09/ql-query-ids.webp)

- Select your **Product Listing** block.

- Enter the IDs in the **include** field, separated by commas.

- Publish and confirm exactly those products appear.

## How It Behaves

The included IDs restrict the query to those products and nothing else.

- **Measured on a published page:** a listing given two product IDs rendered exactly **two products**, and no others.- **It is a comma separated list**, so several products can be pinned at once.- **The selection is fixed.** New products never drift in, which is the point on a landing page or a campaign.- **There is a matching exclude field** for the opposite case, where you want everything except a few.- **Measured with Nexter Blocks Pro deactivated:** the block renders nothing at all — no wrapper, no products, no prices. This is a Pro-only block.

## Limitations

- **Pro only** — measured with Nexter Blocks Pro deactivated, nothing renders.- **It is a manual list that nothing maintains.** A campaign set up months ago quietly keeps showing the same products.- **IDs are not human readable.** Six months later the field says 412, 908 and nobody remembers why.- **A deleted or unpublished product simply disappears** from the listing with no warning, so a page can quietly end up showing two products instead of three.- **For a selection that maintains itself**, use a category or the featured flag — see [display featured products](https://nexterwp.com/docs/display-featured-products-in-woocommerce-in-wordpress/).

## Troubleshooting

### A product is missing from my list

Check it is still published and in stock if your listing hides out-of-stock items. An unpublished product drops out silently.

### Where do I find the product ID?

Open the product for editing and read it from the address bar, as `post=123`.

### The order is not what I entered

The listing still applies its own ordering. Set the ordering to suit, or accept the default.

### I want everything except a few products

Use the exclude field instead of the include field.

## Related Docs

- [Display featured products in WooCommerce](https://nexterwp.com/docs/display-featured-products-in-woocommerce-in-wordpress/)- [Display WooCommerce products by category](https://nexterwp.com/docs/display-woocommerce-products-by-category-in-wordpress/)- [Display WooCommerce products on a custom page](https://nexterwp.com/docs/display-woocommerce-products-on-custom-page-in-wordpress/)- [Advanced tab settings](https://nexterwp.com/docs/use-advanced-tab-in-nexter-blocks/)

## Frequently Asked Questions

**Q: What do I need before showing WooCommerce products by product ID in WordPress?**
A: Nexter Blocks Pro is required because the Product Listing block is Pro-only. WooCommerce also has to be active, and the products need to be published so the block can read them from the real catalogue. The IDs themselves come from the product edit URL, where they appear as post=123. If the store is empty or a product is unpublished, the listing can end up empty or missing items.

**Q: How do I show only specific WooCommerce products by ID on a page?**
A: The Product Listing block uses an include field for this, and the IDs are entered as a comma separated list. That pins the query to exactly those products, so nothing else drifts into the listing later. This is useful for landing pages or campaigns where you want a fixed set of products rather than a category-based feed that can change over time.

**Q: Why is one of my products missing from the listing?**
A: A product can drop out if it is no longer published, and it can also disappear if your listing hides out-of-stock items. The page calls out that unpublished products drop out silently, so a missing item is often a catalogue status issue rather than a broken block. Checking publish state first saves time before you start changing the include list.

**Q: Where do I find the WooCommerce product ID in WordPress?**
A: Open the product for editing and read the ID from the address bar. The page shows it in the URL as post=123, which is the number you enter in the include field. That matters because IDs are not human readable, so copying them directly avoids mixing up similar product names later.

**Q: What should I use if I want everything except a few WooCommerce products?**
A: The exclude field is built for that case. Instead of pinning a short list with include, you leave the broader set in place and remove only the products you do not want shown. That is cleaner when most of your catalogue should appear and only a couple of items need to stay off a landing page or campaign section.

**Q: Is there a better way to keep product listings updated automatically?**
A: Category-based listings or the featured flag are better when you want something that maintains itself. The page says an include list is manual and nothing maintains it, so months later it will still show the same IDs unless someone edits them. For pages that should evolve with your catalogue, [Display featured products in WooCommerce](https://nexterwp.com/docs/display-featured-products-in-woocommerce-in-wordpress/) or [Display WooCommerce products by category](https://nexterwp.com/docs/display-woocommerce-products-by-category-in-wordpress/) fits better.
