Taxonomy Filter for Calendarize it!

Taxonomy Filter for Calendarize it!

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.

  • btn_tax_calendar
  • btn_tax_venue
  • btn_tax_organizer

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
  • ‘child_of’
[rhc_color_key taxonomy="calendar" columns="3" orderby="count" order="DESC"]
Spartan Races 11
Gym Schedule 10
RightHere LLC 8
Obstacle Racing 8
WordCamp 5
WordPress 5
Affluence 2
Accommodation 2
US Holidays 2
Agenda 2
Purple Calendar 2
AkármiTeszt 2
Green Calendar 2
beginner class 2
Pampered 1
Appointment Test 1
Kids On Track 1
BariCal 1
Holiday Retreats 1
Recurring Events (test) 1
Google Calendar Public 1
Google Calendar Private 1
Edwins 1
DemoDemo 1
Built for Teams 1
Demo 1
Photo Sessions 1
Hotdogs 1
Street food 1
calendar 1
Swimming 1
Austen 1
Food 1
Doggy Meetup 1
Cleaning 1
Plugins 1
Online Seminars 1
Timetable 0

Changelog

Version 1.0.2.77381 – March 8, 2017

  • Compatibility Fix: Change classes where the constructor has the same name as the class to __construct (PHP 7 compatibility).

Version 1.0.1.57303 – March 18, 2015

  • New Feature: Added support for Custom Taxonomies not added by Calendarize it!

Version 1.0.0.54614 – November 1, 2014

  • First Release