• Resolved stevert

    (@stevert)


    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)
  • corsonr

    (@corsonr)

    Automattic Happiness Engineer

    Hi @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

    (@stevert)

    @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.

    corsonr

    (@corsonr)

    Automattic Happiness Engineer

    Hi @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.

    Hi @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.