I am trying to utilise the Calendar Plugin, but it deletes the event from the calendar after it happens despite the fact that the settings are set to -1 to disable the deletion. I’ve also tried setting the expiry to two years (17532hrs) and that also removed the event straight after it happened.
The only way I’ve found to keep the events in the calendar is to remove the end time/date.
Does anyone know why the -1 doesn’t work, and what the solution is?
I’ve been reviewing this plugin recently and I handily have a couple of calendars on my test site to check against. Could I ask which flavour of calendar you’ve gone for where this isn’t working?
I have the calendar in the topic, and that one is keeping the expired calendar items:
I haven’t got an event-style one as a category header yet, so I have a feeling it may be that one…
Actually, let me double-check the end times…
Yes, it appears adding an end time will make the event disappear from the /upcoming-event calendar, which does seem to be at odds with the other calendar behaviour. I think we should slide this over to the bug category and see if we can get someone to look at it.
(and, just to be thorough, the non-event-style calendar is working as expected, even with end dates included)
If you’re referring to the setting delete expired event posts after, I think it prevents the deletion of the post, but not the display of the event, plus I think the term event here is misleading, it’s in the calendar section so I think it means more “date related thing” than “event in the rsvp-possible sense”.
that’s a calendar-event, not an event-event
event-events are meant to be displayed in /upcoming-events hence nothing in the past…
I couldn’t decide if the quirk was that it did show past events as long as they didn’t have an end time, or that it didn’t show the ones with an end time. It perhaps may be something I could include in the plugin topic rewrite if it’s a case of expectation versus actual behaviour?
Yup. And possibly even a tweak to some of the setting descriptions as well.
Rather than ping pong it to another category just now, I’ll leave it here and see if I can absorb some further clarity before finding it a forever home.
But thank you for being so knowledgable about this plugin, it is a genuine help.
You can create a regular calendar by adding the following to the OP of a topic: (with calendar enabled checked)
[calendar]
[/calendar]
And then all of the following posts with a description and date will get added to it. eg:
It's my birthday!
[date-range from=2022-12-20 to=2020-12-21 timezone="America/Boise"]
You can then grab a category id of where you want to display it more prominently from the end of the category URL, and the post id of the calendar topic (you can get this from the json) and add it to this setting:
Actually, this seems like a good juncture to slide this topic over to support for its forever home now we know that the setting is working as expected. After I’ve updated the Calendar&Event literature it may be worthwhile creating new ux or feature topics to cover any missing ideas.
Thanks for your help @JammyDodger. I really appreciate it.
So just to circle back and clarify the answer my initial question, there is currently no way of keeping events in the upcoming-events calendar after they’ve happened, unless I remove the end time?
But yes, the only way to retain event-style items in the event-calendar/upcoming-events currently is to remove their end date. I wondered if another workaround to achieve something similar could be to create a ‘Past Events’ or ‘Event History’ calendar topic using calendar items? I’m not sure if that would be suitable for you, but may be worth an explore?