> ## Documentation Index
> Fetch the complete documentation index at: https://www.twicecommerce.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to show one category on a WordPress page

> Narrow the TWICE store embedded in a WordPress page to one category, and use the same steps for one product or one location.

> [!WARNING]
>
> **The TWICE plugin for WordPress runs on TWICE 1.0.** TWICE 1.0 is the earlier version of TWICE Commerce, and it does not support every feature these docs describe. Use the [online store](https://www.twicecommerce.com/docs/guides/sales-channels/set-up-the-online-store.md) on the current version instead. It does not embed in another site.

Copy the category's ID from the TWICE 1.0 admin and enter it in the **Twice Shop Block**. A product or a location works the same way, with the value from the table on [TWICE plugin for WordPress](https://www.twicecommerce.com/docs/concepts/sales-channels/twice-plugin-for-wordpress.md).

## Prerequisites

> [!NOTE]
>
> **Have ready before you start:**
>
> * **A page with the Twice Shop Block on it.** See [Install the TWICE plugin on WordPress](https://www.twicecommerce.com/docs/guides/sales-channels/install-the-twice-plugin-on-wordpress.md).
> * **The category to show**, with its products marked visible in the TWICE 1.0 admin.

## The walkthrough

**1. Open the category**

In the TWICE 1.0 admin, go to **Catalog → Categories** and open the category to show.

**2. Copy the category ID**

Copy the ID from the end of the address in your browser, the part after `/catalog/categories/`.

**3. Select the block**

In WordPress, open the page with your store and click the **Twice Shop Block**. Its settings open in the panel on the right.

**4. Enter the category ID**

Paste the ID into **Specific Category**, then update the page. The block shows only that category's products.

## How do I know it worked?

The published page shows only the products in that category.

## Troubleshooting / common pitfalls

> [accordion] The page uses the shortcode, not the block
>
> Add `category="<category ID>"` to the shortcode. See the attribute table on [TWICE plugin for WordPress](https://www.twicecommerce.com/docs/concepts/sales-channels/twice-plugin-for-wordpress.md).

> [accordion] The block shows the whole store
>
> The ID is incomplete or belongs to another category. Copy it again from the end of the address.

## Related articles

> [card] [TWICE plugin for WordPress](https://www.twicecommerce.com/docs/concepts/sales-channels/twice-plugin-for-wordpress.md)
>
> How the plugin works, its settings and where to find each value.

> [card] [Install the TWICE plugin on WordPress](https://www.twicecommerce.com/docs/guides/sales-channels/install-the-twice-plugin-on-wordpress.md)
>
> Install the plugin and place the store on a page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.