You can view the calendar of assigned resources from the backend, but it is also possible to display it on the frontend with the shortcode [bookingactivities_resource_calendar].
Shortcode parameters
You can use the shortcode [bookingactivities_resource_calendar] to display the calendar of assigned resources, and use parameters to filter or customize it:
| Parameter | Expected value |
|---|---|
resource |
Resource ID(s) (integer) (separated by commas). Display only these resources. |
category |
Resource category ID(s) (integer) (separated by commas). Display only resources from these categories. |
from |
Start date (YYYY-MM-DD format, or a compatible relative format such as today or next monday). |
to |
End date (YYYY-MM-DD format, or a compatible relative format such as +7 day or last day of this month). |
slotMinTime |
Start time of day (format HH:mm) on “Time Grid” views. |
slotMaxTime |
End of day time (format HH:mm) on “Time Grid” views. |
Additional parameters with the Display Pack add-on:
| Parameter | Expected value |
|---|---|
initialView |
View displayed when the calendar loads. Possible values: listYear, listMonthMultiple, dayGridMonthMultiple, dayGridYear, listMonth, dayGridMonth, listFlexible, timeGridFlexible, dayGridFlexible, listWeek, timeGridWeek, dayGridWeek, listDay, timeGridDay, dayGridDay. |
availableViews |
Views that can be navigated through (separated by commas). Possible values: (see above). |
flexibleViewsDayCount |
Number of days of “Flexible” views (integer). |
multipleMonthsViewsDuration |
Number of months of views “Multiple Months” (integer). |
hiddenDays |
Days to hide (integer) (separated by commas). Possible values: 0 (Sunday), 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday). |
slotDuration |
Frequency of time indicators on “Time Grid” views (format HH:mm). |
Examples of shortcodes
Display resources #1, 2, and 4 over a rolling seven-day period, with working days from 8:00 AM to 8:00 PM:
[bookingactivities_resource_calendar resource="1,2,4" from="today" to="+7 days" slotMinTime="08:00" slotMaxTime="20:00"]
Display resources from category #1 for the year 2026:
[bookingactivities_resource_calendar category="1" from="2026-01-01" to="2026-12-31" initialView="dayGridMonth" hiddenDays="2,5"]
In this second example, with the Display Pack add-on, the default view will be a “Month” view and Tuesdays and Fridays will be hidden.
