---
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-22
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

## Steps

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

![Finding the product ID](https://nexterwp.com/wp-content/uploads/2023/08/product-listing-product-id-new-1024x487.png)

- 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/)