Find Product Category IDs

Some WooCommerce features, shortcodes, and integrations require a product category ID. This document explains how to find the ID for your product categories in WooCommerce.

For more details, see Shortcodes included with WooCommerce. You can also use the blocks included in WooCommerce with a theme that supports full site editing.

Find a product category ID

↑ Back to top

Follow these steps to locate the ID for a specific product category:

  1. In your WordPress admin, go to Products > Categories.
  2. Hover over a category name.
  3. Click the category name or the Edit link.
  4. Look at the address bar of your browser.
  5. In the URL, find the tag_ID= parameter. The number after the equals sign is the category ID. For example, in tag_ID=16, the category ID is 16.
Browser address bar showing the tag_ID parameter in the URL on the Edit Category page
↑ Back to top

You can use a similar approach to find IDs for other items in WooCommerce.

Questions and support

↑ Back to top

Do you still have questions and need assistance? 

This documentation is about the free, core WooCommerce plugin, for which support is provided in our community forums on WordPress.org. By searching this forum, you’ll often find that your question has been asked and answered before.

If you haven’t created a WordPress.org account to use the forums, here’s how.

  • If you’re looking to extend the core functionality shown here, we recommend reviewing available extensions in the WooCommerce Marketplace.
  • Need ongoing advanced support or a customization built for WooCommerce? Hire a Woo Agency Partner.
  • Are you a developer building your own WooCommerce integration or extension? Check our Developer Resources.

If you weren’t able to find the information you need, please use the feedback thumbs below to let us know.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.