Skip to content
Submit a Ticket(opens in a new tab)

Making Advanced Shortcodes

Making Advanced Shortcodes in Modern Events Calendar gives you an unlimited capacity to style your layout based on your preferences and have the best user experience possible.

With the variation noted below, you can easily use adjustable alternatives even if you are not a web developer.

How to Build Advanced Shortcodes in Modern Events Calendar?

Section titled “How to Build Advanced Shortcodes in Modern Events Calendar?”

MEC shortcode builder settings page with skin and display options

Note: See shortcode date options to find the best way to show your events based on dates. After adding your event, Modern Events Calendar enables you to make a calendar from all of the events with adorable skins and nice and tidy styles.

Also, it has a powerful filtering tool to create a new calendar.

In order to Add/Edit your custom shortcodes, you need to go to M.E. Calendar > Shortcode > Add Shortcode.

This is the overview of adding a calendar with custom shortcodes:

MEC shortcode builder display options with toggles for event details

In the Modern Events Calendar, you can assign styles to skins. This means that every skin can appear with a certain familiar style:

  • Minimal
  • Modern
  • Standard
  • etc.

Calendar date start options:

  • Today
  • Tomorrow
  • Start of the current month
  • Start of next month
  • On certain date

Show events before the specified date.

You can set the date format in this field. For more information, refer to the following documentation: All Date Formats.

This is the limit for displayed posts. If the limit value equals 5, a calendar will include five events according to the categories you have set up and the filters you have chosen.

Show the local time of the events on the shortcode. For more information, refer to the following documentation: Local Time Module.

Show the time of the events on the shortcode.

If you want to load more events than the limits you have already set, enable this option. This will show a load more button.

Separates (divides) the events based on the month.

Show normal labels on the shortcode. For more information, check the following documentation: Events Labels.

Show the reason for cancellation on the shortcode. For more information, check the following documentation: SEO Schema / Event Status.

Show the Categories of the event on the shortcode. For more information, check the following documentation: Categories.

Show Organizers of the event on the shortcode. For more information, check the following documentation: Organizer / Additional Organizers.

Add a map at the top of the shortcode. For more information, check the following documentation: Map Module.

Show the geolocation of the events in your shortcode.

If you enable this option, auto-zoom at the first loaded map will be disabled.

It will add a new button or icon, or text link to the shortcode to show the booking as a popup.

By enabling this option, you can enable custom fields on shortcodes. For more information, check the following documentation: Custom Fields.

First, you need to enable a custom field and set values on the event.

Then enable this option on shortcode settings: Then you can see custom fields on shortcodes as a popup.

  • Current Window: Events will be shown with another link in the current window.
  • New Window: Events will be shown in another link in a new window.
  • Modal Popup: You can show single events on the same link as a pop-up by selecting this option.
  • Disable Link: By selecting this option, you can disable the event link.

You can enable/disable images in the event content.

This option lets you control the size of event images displayed as thumbnails within the event listing shortcode. You can choose from a set of predefined sizes, including Default, Thumbnail, Medium, Medium Large, Large, and Full. By selecting the appropriate size, you can adjust the appearance of event images to better fit your layout, design preferences, or performance needs. This ensures that the event thumbnails are displayed consistently and in harmony with the overall style of your website.

After setting up your calendar, Modern Events Calendar will generate the shortcode for using a calendar anywhere you like!

MEC shortcode search form settings with search filter options

You can add a search option to your shortcode here. Also, you can see some options on top of this form.

  • Show Labels
  • Show Reset Button
  • Refine Search Parameters

The Refine Search Parameters option in the Search Form section enables layer-by-layer search. If this option is enabled, you can limit the search more and more.

For instance, you have 100 events in location Z. Organizer X has 20 events from these 100 in this location.

By enabling this option, you first search location Z, and then if you search Organizer X, you only get the 20 events that they are doing in location Z.

Organizer X might have other events in other locations. If this option is disabled, then all of their events in every location are displayed.

  • Category (Dropdown: search one category at the same time, Checkboxes: search multiple categories at the same time)
  • Location
  • Organizer
  • Speaker
  • Tag
  • Label
  • Address
  • Event Cost
  • Date Filter (Year & Month Dropdown, Date Picker)
  • Time Filter (Local Time Picker)
  • Text Search

Filter Options

Modern Events Calendar can filter events on the calendar by checking the box that refers to details of an event.

You can filter your shortcode to show specific types of content using this option.

  • Both Events and Appointments: It shows both events and appointments in the shortcode.
  • Events: It shows only events and hides appointments.
  • Appointments: It shows only appointments and hides events.

You can filter your shortcode to show events based on category using this option.

You can filter your shortcode to show events based on location using this option.

You can filter your shortcode to show events based on the organizer using this option.

You can filter your shortcode to show events based on the label using this option.

You can filter your shortcode to show events based on the tag using this option.

You can filter your shortcode to show events based on author using this option.

You can filter your shortcode to show events based on their status using this option.

Set the following date methods to show events:

Expired Events

  • Include Expired Events: You have the ability to include past/expired events if you like. It will show upcoming and expired events based on the start date that you selected.
  • Show Only Expired Events: It shows only expired/past events. It will use the selected start date as the first day and then go to older dates.

Ongoing Events

  • Include Ongoing Events: It includes ongoing events on List, Grid, Agenda, and Timeline skins.
  • Show Only Ongoing Events: It shows only ongoing events on List and Grid skins.

Read more about date options in the Modern Events Calendar plugin.

Enable this option if you need to show only one occurrence of your events.

Note: You can exclude specific tags, labels, organizers, categories, and all the taxonomies from the calendar.

MEC shortcode icon options to change default icons for location, date, cost and more

This option allows you to replace the default icons used in the shortcode skin with your own custom icons. You can fully personalize the visual appearance of your shortcode elements, ensuring they align with your design style or brand identity. Instead of relying on the predefined set of icons, you have the flexibility to upload your preferred icons, giving you complete control over the look and feel of your shortcode skin.

These guides cover the options available in each shortcode view: