Hi @eddypiv,
Thank you for trying this plugin.
The custom post status keeps the event status at 1 to keep existing bookings. Events Manager deletes all bookings data if an event is set to status 0. And then you would not be able to notify them by email anymore…
The post status is also used to change the status to “Draft” if you deactivate this plugin for any reason, preventing orphaned events. When you reactivate this plugin, it will automatically loop through draft events and uses the event category “event-cancelled” to determine whether or not change the post status to “Cancelled” again.
The event category is there for several reasons, but also to allow exclusion. It gives you the option to show or hide cancelled events to your visitors.
Within Events Manager there are two ways to exclude event categories from the front-end, by using shortcodes or by editing a template file. Events Manager shortcodes are easier to use, because they overrule the default settings.
Looking at your website, I assume you enabled the events search using the Events Manager settings. If so, you need to make a minor change in the template file, because Events Manager does not exclude or hide specific categories by default or settings.
The easiest way would be to:
- Disable the search form in the Events Manager settings.
- Then lookup the Category ID for ‘event-cancelled’ in Events > Event Categories.
- Go to your Events Page in Dashboard > Pages.
- Paste the shortcode
[event_search_form hide_empty=1 category="-14"]
above “CONTENTS”, where 14 is your Category ID for ‘event-cancelled’.
If you are comfortable to edit template files you could use the snippet that the Events Manger devs documented on their Pastebin.
Let me know if you need help editing their template.