Hi,
This is possible by using the “validRange” FullCalendar property.
Using a shortcode:
[pgc default_view="dayGridMonth" valid_range-start="2020-04-01" valid_range-end="2020-05-01"]
If you use the Gutenberg block first check the “Edit FullCalendar config” under “Calendar options”.
Then you can do:
{
"header": {
"left": "prev,next today",
"center": "title",
"right": "dayGridMonth,timeGridWeek,listWeek"
},
"validRange": {
"start": "2020-04-01",
"end": "2020-05-01"
}
}
Best wishes,
Michiel
-
This reply was modified 6 years, 1 month ago by
michielve.
I’d like to follow up on that question: Can I also show everything from today for the next four weeks?
Thanks,
Günther
It’s possible to show events from today for the next X days (not weeks).
In the Gutenberg block and widget you edit the “hide passed events” and “hide future events”.
In the widget you can do:
[pgc hidepassed="true" hidefuture="30"]
This will display all events from today for the next 30 days.
-
This reply was modified 6 years ago by
michielve.
Thank you so much for your support – and also for this great plugin!
I’m a little bit embarassed after finding out, that there’s a setting in the right panel doing exactly what I wanted. (But it only becomes visible after enabling “hide future events”, so I couldn’t see it at first.)