Skip to main content

Event Categories

Categories and tags group your events so visitors can browse by type: music, workshops, family days. Each category and tag gets its own page listing its events, and can be used to filter any event list, calendar or search form.

The two work the same way, with two differences. Categories can be nested (Sports, and under it Running and Cycling) and are picked from a checklist. Tags are a flat list that you type into an event as you go.

Before you start

Both are on by default. If the menus described here are missing, set Enable categories? and Enable tags? to Yes in Events then Settings then General then General Options.

Add a category​

  1. Go to Events then Event Categories.

  2. Under Add New Event Category, enter a Name. The Slug is the last part of the category's web address, and is made from the name if you leave it empty.

  3. To nest the category under another, choose it in the parent dropdown.

  4. Write a Description if you want one shown on the category's page.

  5. Pick a Color and, if you like, an Image. See Colors and images.

  6. Click Add New Event Category.

Color and Image are added to the standard WordPress category form by Events Manager.

To change a category later, hover over it in the table on the right and click Edit. Deleting a category does not delete its events. They lose that category and keep everything else.

Who can manage categories​

Creating and editing categories and tags needs the edit_event_categories capability, and deleting them needs delete_event_categories. Administrators and editors have both by default. Anyone who can edit events can assign existing categories and tags to their own events. See User Capabilities.

Add a tag​

Go to Events then Events Tags. The form is the same as for categories, without the parent field, and tags have a Color and an Image too.

You can also create tags while editing an event: type them into the Events Tags box, separated by commas.

Assign categories and tags to an event​

Open the event for editing. Tick its categories in the Event Categories box and type its tags in the Events Tags box, then save. In the block editor both are panels in the settings sidebar. An event can have several of each.

Categories are ticked from a list. Tags are typed into the box below it.

A default category​

To give every event a category when none is chosen, select one under Default Category in Events then Settings then General then General Options. It is added, when an event is saved, to any event that has no category.

Colors and images​

FieldWhat it is for
ColorThe accent color of the category or tag. The default layouts for event lists, event grids and the single event page use the color of the event's category as their accent, so events are told apart at a glance.
ImageA picture for the category or tag, shown on its page and in the list of all categories or tags. Click Choose/Upload Image to pick one from the media library.

A new category starts with the color set in Default category color, and a new tag with Default tag color. Both are in Events then Settings then Formatting, at the top of the Event Categories and Event Tags boxes.

In your own formats, the placeholders are #_CATEGORYCOLOR and #_CATEGORYIMAGE for categories, and #_TAGCOLOR and #_TAGIMAGE for tags.

Category and tag pages​

Every category and tag has a page of its own that lists its events.

CategoriesTags
Address of oneyoursite.com/events/categories/music/yoursite.com/events/tags/live-music/
Page listing all of themThe page chosen as Categories pageThe page chosen as Tags page

The Music category page, using the default format.

Events Manager creates a Categories page and a Tags page under your events page when it is first installed. You can use any other page instead, or none.

Change the web addresses​

The events/categories and events/tags parts are set in Events then Settings then Pages then Permalink Slugs, in the Event Categories and Event Tags fields. The last part of each address is the slug of the category or tag itself.

If you change these on a site that is already live, set up redirects from the old addresses.

Page settings​

Events then Settings then Pages has an Event Categories box and an Event Tags box with the same options.

SettingWhat it does
Categories page / Tags pageThe page that lists all categories or all tags. Choosing one is recommended when Override with Formats? is on, because it improves compatibility with themes and other plugins.
Override with Formats?Yes (the default) shows each category or tag page using your Events Manager formats. No hands the page to your theme, which shows it as an ordinary archive of posts.
Default event archive orderingThe order of events on a category or tag page when your theme is displaying it (Override with Formats? set to No).
Default list orderingThe order of the categories or tags themselves when they are listed: by ID, count, name or slug.
List LimitsHow many categories or tags one list shows.
Default event list orderingThe order of the events listed by placeholders such as #_CATEGORYNEXTEVENTS and #_TAGNEXTEVENTS.
Event List LimitsHow many events those placeholders list. Leave it empty for no limit.

Formats​

What the pages contain is set in Events then Settings then Formatting, in the Event Categories and Event Tags boxes.

SectionControls
Categories PageThe list of all categories: a header, the format of one item, a footer, and the message when there are none.
Single Category PageThe title and the body of one category's page.
Event List FormatsHow the events inside a category page are listed, and the message when it has no events.
Single Event FormatThe format used by the #_CATEGORYNEXTEVENT placeholder.

The Event Tags box has the same sections for tags. All of them take placeholders, including #_CATEGORYNAME, #_CATEGORYLINK, #_CATEGORYDESCRIPTION, #_CATEGORYNEXTEVENTS, #_CATEGORYPASTEVENTS and #_CATEGORYALLEVENTS, with #_TAG... equivalents for tags.

Use categories and tags elsewhere​

ToUse
Show an event's categories or tags in a format#_EVENTCATEGORIES and #_EVENTTAGS
List only the events in a category or with a tag[events_list category="music"] or [events_list tag="live-music"]. See search attributes.
List all categories or all tags on any page[categories_list] and [tags_list]
Show one category or tag[event_category] and [event_tag]
Let visitors filter by category or tagThe search form, set up in Events then Settings then Formatting then Search Form

The shortcodes and their options are on the Shortcodes page.

Limits​

  • The front-end event submission form lets submitters choose categories. It has no field for tags.
  • On a multisite network in global tables mode, categories are managed on the main site and shared with every subsite. See Multisite.

Troubleshooting​

A category page shows blog posts, or nothing

Override with Formats? is probably set to No and your theme's archive template is being used. Set it to Yes in Events then Settings then Pages then Event Categories. If the address gives a "not found" error after you changed a slug, open Settings then Permalinks and click Save Changes to refresh the site's address rules.

There is no Event Categories menu

Either Enable categories? is set to No, or your user role lacks the edit_event_categories capability.

The color I picked does not show

Colors are used by the default formats. If you have written your own list or event formats, add #_CATEGORYCOLOR where you want it, for example as a border or background color in a style attribute.