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?
Note: Click here if you want 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:
- List View
- Grid View (has the option to set grids col, this option will be enabled when grid view is selected)
- Carousel View
- Full Calendar
- Calendar/ Monthly View
- Daily View
- Weekly View
- Map View
- Cover View
- Countdown View
- Slider View
- Module View – Full Calendar
- Yearly View
- Agenda View
- Available Spots View
- Timetable View
- Masonry View
- General Calendar View
In the Modern Events Calendar, you can assign styles to skins. This means that every skin can appear with a certain familiar style:
Calendar date start options:
- 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.
Include Local Time
Show the local time of the events on the shortcode. For more information, refer to the following documentation: Local Time Module.
Include Events Time
Show the time of the events on the shortcode.
Load More Button
If you want to load more events than the limits you have already set, enable this option. This will show a load more button.
Show Month Divider
Separates (divides) the events based on the month.
Display Normal Labels
Show normal labels on the shortcode. For more information, check the following documentation: Events Labels.
Display Reason for Cancellation
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.
Show Map On Top
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.
Disable Geolocation Force Focus
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.
Display Custom Fields
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.
Single Event Display Method
- 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.
After setting up your calendar, Modern Events Calendar will generate the shortcode for using a calendar anywhere you like!
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)
- Event Cost
- Date Filter (Year & Month Dropdown, Date Picker)
- Time Filter (Local Time Picker)
- Text Search
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 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 organizer using this option.
You can filter your shortcode to show events based on label using this option.
You can filter your shortcode to show events based on tag using this option.
You can filter your shortcode to show events based on author using this option.
Expired / Ongoing Events
You can filter your shortcode to show events based on their status using this option.
Set the following date methods to show events:
- Include Expired Events: You have the ability to include past/expired events if you like so. 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.
- 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.
Click here to read more about the date options in Modern Events Calendar plugin.
Enable this option if you need to show only one occurrence of your events.