Category Filter
Displays a dropdown of categories that visitors can use to filter calendar content. Set category_group_id (or id) to choose which category group is listed.
Shortcode:
[category_filter]
Attributes:
The dropdown always uses the ID and name category_filter, so only one category filter works on each page. Up to four levels of sub-categories are listed. Each level is marked with a - prefix and indented further than the level above it. When the selection changes, the calendar on the page refreshes its events. This requires jQuery.
Code Example:
[category_filter category_group_id="5" class="form-select"]
Output:
Category <select class="form-select" id="category_filter" name="category_filter">
<option value="">All</option>
<option value="3" class="font-weight-bold">Community</option>
<option value="7">- Volunteering</option>
<option value="4" class="font-weight-bold">Workshops</option>
</select>