Note: This functionality does not work in WordPress 5.0+. To add a calendar to the post/page please use the shortcode as described lower on this page.
You can add a multiple overview calendar to any post or page by using the Add Calendar button from your WordPress WYSIWYG editor. The button is located next to the Add Media button.
Clicking the Add Calendar button will open a pop-up with all customizable settings for the calendar. Make sure the selected tab at the top of the pop-up is Insert Overview Calendar.
You can customize the following settings:
Display Calendars – select whether to include all calendars or only specific ones in the overview
Select Calendars – if the Display Calendars above is set to Selected Calendars, you will be able to select which calendars to display
Display Legend – select whether to display the calendar’s color legend or not
Legend Position – select the position where the legend should be displayed in relation to the calendar
Start Year – select the year from which you wish the calendar to start
Start Month – select the month from which you wish the calendar to start
Display Tooltips – select whether to show the data you have added for each individual day as a tooltip when a user hovers over the calendar days in the page
Show Day Abbreviations – select whether to show the abbreviation (first letter from the name of each day) of the days in the overview
By clicking the “Insert Calendar” button a shortcode will be added to the editor for you with all the information you have selected in the pop-up.
When this shortcode is inserted into your page or post (in the admin panel) it will generate an overview with all calendars selected, with all the above settings applied.
Here’s the meaning of every setting from the shortcode:
calendars – (numbers list/all) – the IDs of the calendars separated by comma, for example “1,2,3”, which can be found under WP Simple Booking Calendar > Calendars, or the string “all” to display all the calendars
legend – (yes/no) – show the legend for the calendars (yes) or hide it (no)
legend_position – (top/side/bottom) – the position of the legend in correlation with the calendar overview
start_year (0/2017/2018/…) – the start year of the calendar, 0 means the current year, 2017 means 2017, and so on
start_month – (0/1/2/…/12) – the start month of the calendar, 0 means the current month, 1 means January, and so on
history – (1/2/3) – show all booking history (1), replace history with the default legend item (2) or grey-out (3) history
tooltip – (1/2/3) – don’t show tooltips (1), show tooltips (2) or show tooltips with a red indicator (3)
weeknumbers – (yes/no) – show week numbers (yes) or hide them (no)
language – (auto/en/fr/etc.) – the language of the calendar, ‘auto’ will detect the language automatically