WordPress Event Widgets
Widgets put content into the widget areas your theme provides, usually a sidebar or a footer. Events Manager has three:
| Widget | Shows |
|---|---|
| Events | A compact list of events, by default the next five. |
| Events Calendar | A month calendar with the days that have events marked. |
| Event Locations | A compact list of your locations. |
Widget areas exist only in classic themes. A block theme, such as Twenty Twenty-Five, has no Appearance then Widgets screen. There you add the Events Manager blocks to a template or template part in Appearance then Editor. The blocks show the same three things with the same settings.
Add a widget
How you add a widget depends on which widget screen your site has.
- Block-based widget screen
- Classic widget screen
This is the screen WordPress has used since version 5.8. Each widget area is a small block editor.
-
Go to Appearance then Widgets and open the widget area you want, such as Sidebar or Footer.
-
Click the + inserter and type
events. -
Pick one of the Events Manager blocks: Events List, Events Calendar or Event Locations. Its settings appear in the sidebar on the right, and are described on the blocks page.
-
Click Update.
On the block-based widget screen, add the Events Manager blocks straight into a widget area.
The three classic widgets are also available here: add a Legacy Widget block and choose Events, Events Calendar or Event Locations from its list. Use them if you want an option the block doesn't have, such as the longer list of scopes in the Events widget.
Sites that run the Classic Widgets plugin, or a theme that switches the block-based screen off, have the older drag-and-drop screen.
-
Go to Appearance then Widgets.
-
Under Available Widgets, find Events, Events Calendar or Event Locations.
-
Drag the widget into a widget area on the right, or click it, choose the area and click Add Widget.
-
Fill in the options described below and click Save.
To remove a widget, open it and click Delete.
You can also add and edit widgets with a live preview in Appearance then Customize then Widgets.
Events widget options
The Events widget's options.
| Option | Default | What it does |
|---|---|---|
| Title | Events | The heading above the list. |
| Number of events | 5 | How many events to show. |
| Scope | Future events | The date range. The list has every scope Events Manager knows, including Today's events, Events this month and Events within 3 months. |
| Archetype | Default | Appears only when your site has custom event types. Chooses which type to list. |
| Order By | start date, start time, event name | The fields the list is sorted by. |
| Order | Ascending | Ascending or Descending. |
| Category IDs | 0 | One category ID, or several separated by commas. 0 shows every category. |
| Show all events link at bottom? | off | Adds a link to your events page under the list. |
| All events link text? | all events | The text of that link. |
| List item header format | empty | HTML printed once before the events. |
| List item format | a compact item | HTML and placeholders printed for each event. The default shows a thumbnail or date badge, the linked name, the date and the town. |
| List item footer format | empty | HTML printed once after the events. |
| No events message | No events | Shown when nothing matches. |
For a plain bulleted list, set the header format to <ul>, the item format to <li>#_EVENTLINK, #_EVENTDATES</li> and the footer format to </ul>.
Events Calendar widget options
| Option | Default | What it does |
|---|---|---|
| Title | Calendar | The heading above the calendar. |
| Show Long Events? | off | Meant to mark an event that lasts several days on every day it covers. See the note below. |
| Future Events Only? | off | Leaves out past events and stops visitors going back before the current month. |
| Category IDs | 0 | Limits the calendar to one or more categories. |
| Archetype | Default | Appears only when your site has custom event types. |
| Calendar Size | Responsive | Responsive, Large, Medium or Small. In a narrow sidebar a Responsive calendar shows at its small size. See calendar sizes. |
| Event Style | your Default event style setting | Pills, Single dot, Multiple dots or Rings. See event styles. |
| Events per day | your Calendar events/day limit setting | The most events shown on one day. 0 means no limit. |
In Events Manager 7.5 the Show Long Events? box in this widget does not stay ticked after you save. If you need long events marked on every day, use the Events Calendar block and its Show long events switch, or the shortcode [events_calendar long_events="1"] in a text widget.
The calendar itself, including what happens when a visitor clicks a day, is described in Using event calendars.
Event Locations widget options
| Option | Default | What it does |
|---|---|---|
| Title | Event Locations | The heading above the list. |
| Show number of locations | 5 | How many locations to show. |
| Scope of the locations | Future events | In Events Manager 7.5 this does not change which locations are listed: every published location is included. |
| Order By | Event start date/time, location name | Sort by when each location's events take place, or by Location name. |
| Order of the locations | Ascending | Ascending or Descending. |
| List item header format, List item format, List item footer format | a compact item | As for the Events widget, with location placeholders such as #_LOCATIONLINK. |
| No Locations message | No locations | Shown when there are no locations. |
This widget is available while Enable locations? is Yes in Events then Settings then General then General Options.
Use a shortcode in a widget
When a widget doesn't have the filter you need (a tag, a country, a search form, a grid), put a shortcode in a widget area instead. On the block-based screen use the Shortcode block, on the classic screen the Text widget.
[events_list tag="live-music" limit="3"]
Troubleshooting
The widget shows "No events"
The widget lists published events inside its Scope, in the categories given in Category IDs. Set Category IDs to 0 and Scope to All events to check that events are found at all, then narrow it again.