The WooCommerce filter field guide
Shortcode Reference.
Complete list of ModeFilter Pro shortcode attributes for modep_filters and modep_catalog: query, layout, filters, pagination, catalog and style.
Two shortcodes are available. [modep_filters] shows filters and a product grid. [modep_catalog] shows the same with catalog behaviour. Both accept the attributes below.
Tip: the Visual Filter Builder writes these for you.
Products
| Attribute | Values | Description |
|---|---|---|
cat_in, tag_in, brand_in | slugs or IDs, comma separated | Only include these categories, tags or brands |
exclude_cat, exclude_tag, exclude_brand | slugs or IDs | Hide these choices from the filters |
sellable_cat_slug | category slug | Optional category that defines the sellable pool |
price_min, price_max | number | Starting price range |
only_catalog | yes, no | Show only products in Catalog mode |
sort | default, price_asc, price_desc, in_stock, preorder, out_of_stock | Starting sort order |
columns | 1 to 6 | Grid columns |
per_page | 1 to 60 | Products per page |
Layout and cards
| Attribute | Values | Description |
|---|---|---|
template_kit | template id | Start from a template |
grid_layout | grid, masonry, justified | Grid type |
masonry_gap | 0 to 200 | Gap in masonry layout (px) |
justified_row_height | 50 to 1200 | Row height in justified layout (px) |
preset | normal, minimal, overlay | Card style |
link_whole_card | yes, no | Make the whole card a link |
link_mode, custom_link_url, custom_link_external, custom_link_nofollow | Where product links go | |
meta_fields, custom_layout | Extra card details and layout order (used by the Elementor widgets) | |
filter_accent, card_surface | hex colour | Accent colour and card background |
Filters
| Attribute | Values | Description |
|---|---|---|
filters_mode | manual, auto | Auto detects filters from your products |
filters | categories, tags, brands, price, rating, pa_… | Which filters to show and in which order |
filter_style | global, chips, checkboxes, radios, toggles, hierarchical | Default style for all filters |
filter_controls | auto, none, or filter:control pairs | Control for each filter. See Filter controls |
filter_position | left, right, top, pills, drawer | Where the filters sit |
category_hierarchy | global, yes, no | Keep parent and child categories |
filter_search | auto, yes, no | Search box inside long filter lists |
show_counts | yes, no | Live product counts |
applied_bar | yes, no | Removable chips for active filters |
terms_limit | 1 to 200 | Choices shown before Show more |
terms_show_more | yes, no | Show more button |
terms_orderby, terms_order | count or name; ASC or DESC | Order of choices |
audience_rules | rules separated by | | See Audience rules |
Loading and pagination
| Attribute | Values | Description |
|---|---|---|
pagination | load_more, numbers, infinite, none | How more products load |
load_more_text | text | Label of the Load more button |
loader_style | global, spinner, skeleton, dots, pulse, custom, none | Loading indicator |
loader_image | URL | Image for the custom loader |
Catalog options
| Attribute | Values | Description |
|---|---|---|
catalog_button_text | text | Enquiry button label (default Enquire Now) |
inquire_action | popup, and other actions set in Enquiry & Popup | What the button does |
catalog_message_enable, catalog_message | yes or no; text | Message shown on catalog products |
show_excerpt, excerpt_length, excerpt_length_type | yes or no; number; words or characters | Short description on cards |
Style attributes
Filter colours and typography (fs_*, filter_styles), panel, grid (g_*) and pagination (pg_*) options are listed in the Styling guide.
Examples
[modep_filters cat_in="helmets,45" tag_in="summer" brand_in="arai" columns="3" per_page="12" sort="price_asc"]
[modep_catalog only_catalog="yes" catalog_button_text="Request a quote"]
[modep_filters template_kit="atelier" filter_controls="auto,categories:checkboxes" pagination="infinite"]
