Categories filter shortcode

The Prodigy Categories Filter shortcode displays your store's category tree.  This shortcode is demonstrated in the shop sidebar if you have installed our demo content.

sc-categories-filter.png

Example Usage

Displays the store's category tree with hierarchy and product counts.

[prodigy_categories_filter]

Available Attributes

show_product_counts

Determines if product counts are displayed next to each category.  Acceptable values are:  true, false.  Default value is true.

[prodigy_categories_filter show_product_count="false"]

show_hierarchy

Determines if the categories are shown in a hierarchical or flat structure.  Acceptable values are: true, false.  Default value is true.

[prodigy_categories_filter show_hierarchy="false"]

hide_empty

Determines if categories with no associated products are shown or hidden.  Acceptable values are: true, false.  Default value is true.

[prodigy_categories_filter hide_empty="false"]

max_depth

Accepts a positive integer to determine the number of levels of the hierarchy to display.  

[prodigy_categories_filter max_depth="2"]

Template Override

The template used by this shortcode can be overridden by copying the template into your theme or child theme and then editing.

Copy from:

prodigy-commerce/templates/partials/shortcode/categories-filter.php

Copy to:

<your-theme>/prodigy/shortcode/categories-filter.php