Wix support has directed me to the forum. On our company website, we utilise lots of Manually Selected Events lists. Being manually selected, past events are not automatically removed. As we have a fair few lists of events, this is a bit of a pain. Can anyone help me to get around this issue using code? Our site is www.ice-warrior.com.
I have not used Corvid code before, but have some past experience with HTML.
We’ll need more information in order to help…
What lists of events do you have? What do you mean by manually selected? How are you showing the events? Where?
What determines if an event is to be removed? Do your events have dates? You could just avoid showing events that have “expired”.
If you are using the Wix Events app select manually as shown in their own support pages.
https://support.wix.com/en/article/choosing-which-events-to-display-on-a-site-page-in-wix-events#displaying-different-events-on-different-pages
Then there is nothing you can do to alter it in code as you are manually selecting them yourself, so using code is sort of defeating the object of selecting them manually when in code you will be doing it automatically.
You can always just set up Wix Events to automatically remove past events, however you won’t be able to have them across multiple pages with the seperate events categories etc.
Wix Events app is workable with Corvid as shown here.
https://support.wix.com/en/corvid-by-wix/wix-events-with-corvid
https://support.wix.com/en/article/creating-a-custom-events-gallery
https://support.wix.com/en/article/creating-a-custom-event-details-page
If you want to do it through code, then you would need to not use the Wix Events app and make up your own Events dataset and do the following in the linked previous forum post, so that you can setup your page to only show upcoming events yourself.
https://www.wix.com/corvid/forum/community-discussion/scheduled-job-is-not-working
Thank you for your detailed response. I think I shall just have to keep on top of things and remove past event manually. The solution will only come when Wix update how the Events App works.
All the best from a very bleak Dartmoor.