Skip to content

[eme_filterform]

24-Jan-11

[eme_filterform]

Creates a form with drop-downs for categories, locations, towns, weeks, months (configurable in the settings). This shortcode is only usefull if used on the same page as the [eme_events] shortcode or the [eme_calendar] shortcode (because it is in fact these shortcodes that interpret the filter submit).
Accepts the following parameters:

  • multiple: 0 or 1. If 1, you can select multiple categories, locations or towns (not weeks, years). Default: 0.
  • multisize: the size of the drop-down window if multiple. Default: 5.
  • scope_count: the number of future weeks/months to be shown. Default: 12.
  • submit: the text on the submit button. Default: Submit.
  • fields: can contain a comma separated list of fields that should be shown (the filter format is general, and using this, you can hide certain fields in certain forms). For a calendar, you may want to block showing weeks, so you can use eg: [events_filter fields=categories,months] (and make sure the “filter form format” contains at least the filters for month and cats).
  • category: can contain a comma separated list of categories you want the category selection to be limited to
  • notcategory: can contain a comma separated list of categories you want excluded from the category selection box

Example:
[eme_filterform scope_count=5]
[eme_events]