Taxonomy Filter for Calendarize it!
Taxonomy Filter for Calendarize it! is an add-on, which allows you to enable drop-down filters for default or custom Taxonomies quickly.
By default Calendarize it! has three built-in Taxonomies (filters), which are “Calendar,” “Organizers” and “Venues.” You can quickly add drop-down filters for these by adding the following attributes to your Calendarize it! shortcode.
You can add these to the left side or the right side above the calendar by using the “header left” or “header right” argument.
You can, in the same way, add drop-down filters for any Custom Taxonomy you have created using the Capabilities and Taxonomies add-on, by using the “slug.”
In this site, we have created the Custom Taxonomies “State” and “Country”, which we have inserted in the shortcode used below.
[calendarizeit header_left="prevYear,prev,next,nextYear" header_right="btn_tax_calendar,btn_tax_country,btn_tax_state,btn_tax_organizer,btn_tax_venue" feed="0" tax_filter_multiple="0"]
You can add the attribute tax_filter_multiple. By default, the value is “1”. If set to “0” in Taxonomy drop down filters, only one value can be selected, not multiple.
By default Calendarize it! shows nested child terms under their respective parent term. If you want to only show the parent term you can add the attribute btn_tax_parent_only. Add the slug of the taxonomy (example btn_tax_parent_only=”calendar”) of which you want to only show the parent terms. You can add multiple separated by a comma.
If you are using the default shortcode the settings from the Options > Calendarize Shortcode tab will be used. You have the option to enable only showing parent terms. Please notice that this is a global setting and applies to all taxonomies. Only when using the shortcode can you specify the specific taxonomies.
Calendar with pre-filtering
In the calendar below we have just added a taxonomy filter to the calendar when it loads and then the user can still use the Taxonomy Filter drop-downs to filter events in other taxonomies.
[calendarizeit header_left="prevYear,prev,next,nextYear" taxonomy="calendar" terms="obstacle-racing" header_right="btn_tax_calendar,btn_tax_country,btn_tax_state,btn_tax_organizer,btn_tax_venue" feed="0" tax_filter_multiple="0" gotodate="2021-10-01"]
Calendar Color Code Overview
If you have the Event Color by Taxonomy add-on you can add color coding to the drop-down filters are shown above, and you can create this overview showing the different colors used.
Currently, you can use the following arguments.
- ‘columns’ allowed columns 1, 2, 3, 4, 6, 12
- ‘taxonomy’ an rhc taxonomy custom or default
- ‘hide_empty’ 1 or 0
- ‘orderby’ one of this values ‘id’,’name’,’slug’,’count’,’none’
- ‘order’ ASC or DESC
- ‘parent’ integer value
[rhc_color_key taxonomy="calendar" columns="3" orderby="count" order="DESC"]
Version 126.96.36.199381 – March 8, 2017
- Compatibility Fix: Change classes where the constructor has the same name as the class to __construct (PHP 7 compatibility).
Version 188.8.131.52303 – March 18, 2015
- New Feature: Added support for Custom Taxonomies not added by Calendarize it!
Version 184.108.40.206614 – November 1, 2014
- First Release