Category accordion shortcode accepts a couple of parameters. All the parameters are listed below with the description.
Category Accordion Shortcode :
[wpb_category_accordion taxonomy="category" orderby="name" order="ASC"]
- taxonomy: (string) You can show any WordPress custom taxonomy or category on our accordion. Just put the taxonomy key in the taxonomy parameter. Default: category.
- orderby: (string) The column to use for ordering categories. Default ‘name’.
- order: (string) Which direction to order categories. Accepts ‘ASC’ or ‘DESC’. Default ‘ASC’.
- show_count: Show post count. Options: yes, no. Default: no.
- hide_empty: Hide empty categories. Options: yes, no. Default: yes.
- exclude: (array|string) Array or comma/space-separated string of term IDs to exclude.
- include: (array|string) Array or comma/space-separated string of term IDs to include.
- hierarchical: Display sub-categories as inner list items (below the parent list item) or inline. Optiopns: yes, no. Default: no.
- number: Sets the number of Categories to display. This causes the SQL LIMIT value to be defined. Default to no LIMIT.
- depth: This parameter controls how many levels in the hierarchy of Categories are to be included in the list of Categories.
- accordion: Close previously opened accordion. Optiopns: yes, no. Default: yes.
- xclass: (string) Add extra CSS class.