Embedding a yearly calendar

Documentation Menu

The Yearly Calendar

You can embed a yearly calendar that shows the availability for an entire year for a single calendar.

Embedding the yearly calendar

Same as embedding the calendar, the yearly calendar can be embedded via shortcode, or from a page builder module or widget such as Divi, Elementor or Gutenberg.

The parameters

ParameterValuesDefaultDescription
idthe ID of the calendarnoneThis will let the shortcode know which calendar to embed. You can find your calendar IDs in WP Booking
System → Calendars
form_idthe ID of the form0This will let the shortcode know which form to attach to the calendar. You can find your form IDs in WP
Booking System → Forms. Calendars can be embedded without a form, in which case it won’t allow the
customer to make bookings, the calendar will just display the availability.
titleyes/noyesDisplays the calendar title as a heading above the calendar
legendyes/noyesDisplays the calendar’s legend items
legend_positionside/top/bottomsideThe position of the calendar legend. Can be to the side of the calendar, above the calendar or below the
calendar.
year0 or 1970-21000The starting year of the calendar. 0 (zero) means the current year will be displayed.
languageauto or 2 letter language codeautoThe language in which to display the calendar and form. With auto the plugin tries to
detect your website’s language automatically.
dropdownyes/noyesDisplay the month navigation dropdown in the first calendar
history1,2,31Handles the past dates in the calendar.

  • 1 – show all booking history
  • 2 – replace history with the default legend item
  • 3 – grey out past dates
tooltip1,2,31Handles the tooltips in the calendar

  • 1 – disable tooltips
  • 2 – enable tooltips
  • 3 – enable tooltips and show a red indicator for dates containing a tooltip
highlighttodayyes/nonoHighlight today’s date in the calendar
show_pricesyes/nonoShow the daily price for each day. Only works if pricing is enabled.
form_positionside/bottombottomThe position of the booking form
auto_pendingyes/noyesHandles what happens to the booked dates after the booking is made. If set to yes, the
dates will be marked as unavailable in order to prevent double bookings. If the Inventory add-on is
installed, the dates will be marked as unavailable only when the inventory reaches 0.
selection_typesingle/multiplemultipleHandles the date selection in the calendar. The multiple option is used for selecting a
date range by requiring the customer to click on the starting date and the ending date. The
single option selects one day with a single click.
selection_stylenormal/splitsplitHandles the date selection style. The normal parameter selects full days, while the
split parameter marks the starting and ending days of the selection as half days or
changeover days. When using pricing, normal counts days and split
counts nights.
minimum_daysany positive integer0Sets a restriction for the minimum days that must be booked. If the Booking Restrictions add-on
is installed, this parameter is ignored.
maximum_daysany positive integer0Sets a restriction for the maximum days that must be booked. If the Booking Restrictions add-on
is installed, this parameter is ignored.
booking_start_day1-70Sets a restriction for the day of the week on which the booking can start. 0 = disabled, 1-7 =
Monday-Sunday. If the Booking Restrictions add-on is installed, this parameter is
ignored.
booking_end_day1-70Sets a restriction for the day of the week on which the booking can end. 0 = disabled, 1-7 =
Monday-Sunday. If the Booking Restrictions add-on is installed, this parameter is
ignored.
show_date_selectionyes/nonoShow the start date and end date of the date selection made in the calendar at the beginning of the
booking form.

Embedding with Gutenberg

Go to the post or a page where you want to embed the calendar and click on the black + sign. A list with all the available modules will appear. The easiest way to find the Yearly Calendar module is to search for it by typing “calendar” in the search box.

The embed process is similar to the one of embedding a calendar with Gutenberg.

Embedding with Divi

Go to the post or a page where you want to embed the calendar and click on the grey + sign. A list with all the available modules will appear. The easiest way to find the Yearly Calendar module is to search for it by typing “calendar” in the search box.

The embed process is similar to the one of embedding a calendar with Divi.

Embedding with Elementor

Go to the post or a page where you want to embed the calendar. Scroll through the Elements list until you see the WP Booking System category, or simply search for “wp booking” to show the relevant widgets.Select the Yearly Calendar widget.

The embed process is similar to the one of embedding a calendar with Elementor.

The shortcode

An example of the shortcode:

Was this article helpful?

Yes (11) No

We're sorry to see this article wasn't as helpful as we hoped it would be. Please let us know what you were looking for so that we can improve this documentation page.

Full CTA BG
Is WP Booking System a good fit for you?

Tell us about your business activity & plugin requirements and we'll let you know if WP Booking System is right for you.

Have a support question? Please use this form instead.