Support » Plugin: WPB Accordion Menu or Category » Shortcode for Woocommerce category?

  • Resolved bs

    (@brunosimon)


    Hello,

    Not sure which shortcode to use for WC (custom) category.

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • As far as I can tell @brunosimon, it should be like this (taking straight from the readme.txt):

    [wpb_category_accordion taxonomy=”category” orderby=”name” order=”ASC” show_count=”no” hide_empty=”yes” icon=”+”]

    Options is shown underneath:

    * taxonomy : Default category or any registered taxonomy.

    * orderby: Sort categories alphabetically, by unique Category ID, or by the count of posts in that Category. Valid values: ID, name, slug, count, term_group

    * order: Sort order for categories (either ascending or descending). The default is ascending. Valid values: ASC, DESC

    * show_count : Toggles the display of the current count of posts in each category. The default is false (do not show post counts). Valid values: no, yes

    * hide_empty: Toggles the display of categories with no posts. The default is true (hide empty categories). Valid values: yes, no

    * icon: Accordion navigation icon ( optional ).

    • This reply was modified 4 years, 4 months ago by mathiasholmbo.

    product_cat

    Plugin Author wpbean

    (@wpbean)

    Use the following shortcode for showing the WooCommerce Categories –

    [wpb_category_accordion taxonomy="product_cat" orderby="name" order="ASC" show_count="no" hide_empty="yes" icon="+"]

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode for Woocommerce category?’ is closed to new replies.