Prerequisites
Have ready before you start:
- A page with the Twice Shop Block on it. See Install the TWICE plugin on WordPress.
- 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
The page uses the shortcode, not the block
The page uses the shortcode, not the block
Add
category="<category ID>" to the shortcode. See the attribute table on TWICE plugin for WordPress.The block shows the whole store
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
TWICE plugin for WordPress
How the plugin works, its settings and where to find each value.
Install the TWICE plugin on WordPress
Install the plugin and place the store on a page.