Using Event Calendars
The calendar shows one month at a time, with the days that have events marked. Visitors move between months with the arrows or the month picker, and click a day or an event to see the details. You can add as many calendars as you like, each with its own size, style and filters.
A large calendar using the Pills style.
Add a calendar
- Block
- Shortcode
- Widget
- Events page
- PHP
In the block editor, add the Events Calendar block and set its size, event style and filters in the block's settings panel. See Events Calendar block.
Put the shortcode in any page, post or text widget:
[events_calendar]
Add attributes to change one calendar without touching your settings:
[events_calendar calendar_size="large" calendar_event_style="pill" long_events="1" category="5"]
The attributes are listed under events_calendar.
In a classic theme, add the Events Calendar widget to a sidebar or footer in Appearance then Widgets. See Events Calendar widget options.
To show a calendar on your main events page in place of the list, go to Events then Settings then Pages then Event List/Archives and set Display calendar in events page? to Yes.
To keep the list and let visitors switch to a calendar, leave that at No and make sure Calendar is ticked under View Types in Events then Settings then Formatting then Search Form. See Event search form.
In a theme template:
echo EM_Calendar::output( array( 'calendar_size' => 'small', 'long_events' => 1 ) );
It takes the same arguments as the shortcode.
Calendar sizes
A calendar comes in three sizes, and a fourth setting that picks between them.
| Size | What it looks like |
|---|---|
| Large | Tall day cells with room for events inside them. With the Pills style each event shows its start time and name. The header has a Today button. |
| Medium | Square day cells with the date number only. Days with events are marked with a ring or dots. |
| Small | The same as medium, more compact, with a smaller header. Made for sidebars. |
| Responsive | Follows the width of the calendar on the page: small under 560 pixels, medium under 908 pixels, large above that. A calendar in a sidebar comes out small, and the same calendar in a full-width page comes out large. |
Responsive is the default. Change the default in Events then Settings then Formatting then Calendar with Default calendar size, or set one calendar with the calendar_size shortcode attribute (small, medium or large), the block's Calendar size or the widget's Calendar Size.
A small calendar using the Multiple dots style.
Event display styles
The event style decides how events are marked on a day.
| Style | Attribute value | What it shows |
|---|---|---|
| Pills | pill | On a large calendar, one labeled bar per event, with its start time and name. Medium and small calendars have no room for bars and mark the date number with a colored ring. |
| Single dot | dot | One colored dot under the date number, however many events the day has. |
| Multiple dots | dots | One colored dot per event, up to the per-day limit, then a + when there are more. |
| Rings | ring | A colored ring around the date number. |
Colors come from each event's first category. An event with no category uses Default category color from Events then Settings then Formatting then Event Categories.
Set the default with Default event style in Events then Settings then Formatting then Calendar. A new site starts on Single dot. A site that was updated from a version before the styles existed stays on Pills. To change one calendar, use calendar_event_style in the shortcode, Event style in the block or Event Style in the widget.
[events_calendar calendar_event_style="dots" limit="3"]
This shows up to three dots per day, and a + on days with more than three events.
What visitors can do
Move between months
The arrows in the header go to the previous and next month, the Today button (large and medium sizes) comes back to the current month, and clicking the month name opens a month picker. The calendar reloads in place without leaving the page.
An arrow is switched off when there is nothing to show in that direction: since Events Manager 7.5 the calendar stops at the first and the last month that has events. This also keeps search engine crawlers from following the month links forever. There is no setting for it. Developers can turn it off with the em_calendar_nav_stops_at_events filter.
With scope="future" (or Future events only in the block and widget), visitors can't go back before the current month.
Click a day
What a click on a marked day does depends on Date Preview Mode:
- Modal Popup (the default) opens a popup titled "Events on" and the date, listing that day's events.
- Direct Link goes to a page for that day on your events page, with an address such as
/events/2026-11-27/. If the day has one event and Link directly to event on day with single event? is Yes, the link goes straight to the event.
The date preview popup.
Click an event
On a large calendar with the Pills style, each event can be previewed without leaving the calendar. Event Preview Mode sets how:
- Modal Popup (the default) opens the event's summary in a popup when it is clicked.
- Tooltip shows a small card when the pointer is over the event, or when it is tapped.
- No Preview makes the event a plain link to its page.
Calendar settings
All of these are in Events then Settings then Formatting then Calendar. They are the defaults for every calendar on the site.
The first calendar settings, with the preview modes below them.
| Setting | Default | What it does |
|---|---|---|
| Default calendar size | Responsive | See Calendar sizes. |
| Default event style | Single dot on a new site | See Event display styles. |
| Split by timeslots? | No | For events with timeslots: Yes shows each timeslot as its own entry, No shows the event once for the day. |
| Link directly to event on day with single event? | Yes | A day with one event links to that event, not to a day page with a single item. |
| Show list on day with single event? | No | When a visitor does reach the day page of a day with one event, Yes shows it as a list of one, No shows the event itself. |
| Month format | M Y | The month and year in the header, as a PHP date format. F Y gives "November 2026". |
| Event format | #_12HSTARTTIME - #_EVENTLINK | What a pill says on a large calendar. Accepts placeholders. |
Under Preview Formats:
| Setting | Default | What it does |
|---|---|---|
| Event Preview Mode | Modal Popup | Tooltip, Modal Popup or No Preview. See Click an event. |
| Date Preview Mode | Modal Popup | Modal Popup or Direct Link. See Click a day. |
| Event modal preview format, Event tooltip preview format, Events date modal preview format | built in | The HTML of the previews. These three appear when Advanced Mode is on and Override Default Formats? is Yes. |
Under Full-Size Calendar and Small Calendar, the same three settings exist twice:
| Setting | Default | What it does |
|---|---|---|
| Abbreviated weekdays? | Yes for full-size, No for small | Uses the short weekday names (Fri) in the column headings. |
| Initial lengths | 0 for full-size, 1 for small | Cuts the weekday names to this many letters. 0 leaves them whole. |
| Show Long Events? | No | Yes marks an event that lasts several days on every day it covers. No marks its first day only. |
The weekday settings under Full-Size Calendar apply whenever a calendar is displayed large, and those under Small Calendar whenever it is displayed medium or small. Show Long Events? under Small Calendar applies only to a calendar fixed at the small size. Every other calendar, responsive ones included, follows the one under Full-Size Calendar.
Under Calendar Day Event List Settings:
| Setting | Default | What it does |
|---|---|---|
| Default event list ordering | event name, then start time, ascending | The order of events inside one day. |
| Calendar events/day limit | 3 | The most events shown on one day. Leave it blank for no limit. |
| More Events message | more... | The link shown on a day that has more events than the limit. Use %COUNT% for the number left over, as in %COUNT% more. Leave it blank for no link. |
The iCal Feed Settings at the bottom of the same section are covered in iCal and RSS feeds.
Change one calendar without changing the settings
Any calendar can override the defaults with shortcode attributes, such as calendar_size, calendar_event_style, long_events, limit, month, year and scope, together with the usual event filters (category, tag, location, country and so on). The full list is in the calendar attributes.
[events_calendar category="5" scope="future" calendar_size="medium"]
A calendar can also carry a filter button that opens the search form, with has_search="1":
[events_calendar has_search="1"]
WP FullCalendar
WP FullCalendar is a separate free plugin that draws a different calendar, with week and day views, from the same events. When it is installed, its own options let it take over the [events_calendar] shortcode and the calendar on the events page. Features described on this page, such as sizes, event styles and previews, belong to the built-in calendar and don't apply to it.
Customize the template
If the settings and formats don't go far enough, a developer can copy the calendar templates into the theme and edit them. The calendar is built from the files in events-manager/templates/calendar/: calendar.php, the three section-*.php parts and the three preview-*.php parts. The older templates/templates/calendar-full.php and calendar-small.php files now only load calendar/calendar.php. See Using template files.
Troubleshooting
The calendar shows rings or dots where I expected event names
Event names appear only on a large calendar with the Pills style. Set calendar_size="large" and calendar_event_style="pill", or give a responsive calendar more than 908 pixels of width.
The next or previous arrow is grayed out
There are no events in that direction, so the calendar stops there. Past months are also closed when the calendar is set to future events only.
A long event appears on its first day only
Set Show Long Events? to Yes for the calendar size you use, or add long_events="1" to the shortcode.
An event with a category shows in the wrong color
The calendar uses the event's first category. Give that category a color in Events then Event Categories.