Previous Topic

Next Topic

Book Contents

Book Index

Events Filter for Calendar Short Code

The Events Filter short code works with the responsive full-sized calendar. It creates a filter list of checkboxes that allow your site's visitors to filter the events displayed. For example, they can choose specific event types or categories to filter on.

Short Code Options

Option Name

Description

Filter Events by/
by_method

Method to filter by. Supported values are:

  • by Event Type/item_type_id - Filter by event type.

    See Notes below for info on what types are shown.
  • by Calendar/calendar_id - Filter by calendar the event is on. This option is only available if the system's license supports more than one calendar. See notes for info on what calendars are displayed.
  • by Event Style/style_id - Filter by the style assigned to the event. This option is only valid if the global configuration of Tie Item Styles to Event Type is set to no.
  • by Location/location_id - Filter by event location. This option will only be present if the global configuration option "Enable location entry for events." is set to yes.

    The option "View calendars for this location." must be checked on each location to be visible.

Title
title

Title to display as the legend for the filter field set.

Collapse Threshold/ collapse_threshold

If more than this # of filter checkboxes is present, initially display the filter box as a collapsed field set. Set this value to 0 to disable collapsing the filter set.

Collapse Label/
collapse_label

Label to display to the left of the title to give a visual indication that clicking on the fieldset legend collapses the field set.

Expand Label/
expand_label

Label to display to the left of the title to give a visual indication that clicking on the fieldset legend expands the field set.

Additional Notes

Content inside the shortcode tags will be shown in the fieldset. E.G.

[cdaily_filter ...]Check or uncheck the boxes below to filter the events.<br>[/cdaily_filter]

For calendar and event types, the available options are controlled by permissions. The connectDaily user account must have permission to view calendar for this object.

If there's not more than one checkbox option, then the filter box will not be displayed.

You can "Uncheck All" boxes and still have some events left over. As an example, say you have an event with a location of "Some Concert Hall" and the option "View calendars for this location." is not set. The location is not in the set of checkboxes, so it's unaffected by uncheck all. In other words, uncheck all only operates on the events that are represented in the filter set.

See Also

WordPress Calendar Plugin

Installation

Add Event Form

WordPress Mini-Calendar and Simple List of Events Widgets

Detailed List of Events Shortcode and Widget

Responsive Month View Calendar

Display Single Event

WordPress IFRAME Calendar Short Codes

Frequently Asked Questions About the WordPress Calendar Plugin

Troubleshooting

Short Code and Widget Reference