Title: Shortcode for categories
Last modified: March 18, 2021

---

# Shortcode for categories

 *  Resolved [stevert](https://wordpress.org/support/users/stevert/)
 * (@stevert)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-categories-4/)
 * How can I insert the product category widget into the plain text editor? Is there
   a shortcode for listing product categories(not the products in the categories,
   but simply a list of the categories)?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-categories-4/#post-14200387)
 * [https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-13](https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-13)
 *  [Remi Corson](https://wordpress.org/support/users/corsonr/)
 * (@corsonr)
 * Automattic Happiness Engineer
 * [5 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-categories-4/#post-14200400)
 * Hi [@stevert](https://wordpress.org/support/users/stevert/),
 * If I am capturing this correctly, you’d like to list the product categories, 
   not the products within those categories, with either a widget or a shortcode,
   from a page content.
 * This is possible with a widget but this shortcode will do it:
 * `[product_categories number="0" parent="0"]`
 *  Thread Starter [stevert](https://wordpress.org/support/users/stevert/)
 * (@stevert)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-categories-4/#post-14201445)
 * [@corsonr](https://wordpress.org/support/users/corsonr/) I want to have my product
   categories listed just like the product category widget, so in a menu style. 
   But I need to insert it into a regular page, and I am not using Gutenberg but
   the plain text editor where I can only use shortcodes.
 * The shortcode you provided does not display the categories in a menu list stlye
   like the product category widget does unfortunately.
 *  [Remi Corson](https://wordpress.org/support/users/corsonr/)
 * (@corsonr)
 * Automattic Happiness Engineer
 * [5 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-categories-4/#post-14201471)
 * Hi [@stevert](https://wordpress.org/support/users/stevert/),
 * Oh ok, sorry that I missed that. Since widgets can’t be used within the content
   I’m afraid that this will require some custom code.
 *  [MayKato](https://wordpress.org/support/users/maykato/)
 * (@maykato)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-categories-4/#post-14234678)
 * Hi [@stevert](https://wordpress.org/support/users/stevert/)
 * We’ve not heard back from you in a while, so I’m marking this thread as resolved.
   If you have further questions, please feel free to open a new topic.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Shortcode for categories’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [MayKato](https://wordpress.org/support/users/maykato/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-categories-4/#post-14234678)
 * Status: resolved