Need help to filter events by "has_bookings"
-
Hi guys,
I’ve tried using search as I figure this must be somewhere, but no luck in the last couple of hours.I want to split my events into two pages.
On my first, public, page, I want to list all the events which I have created, but don’t control the booking for – ie “{ has_bookings }” would be false. (This is the shortcode for checking if an event allows booking or not….correct?)On my second page I want to list all the events where “{ has_bookings }” is true – ie logged-in users are allowed to book on these events.
The plugin is so flexible I don’t really know where to start doing this. I’m guessing I need to replace the event-list and event-single templates (cpoy them to my theme directory and edit….) and turn off “formatting” in settings(?), but I’m really not sure and the default event_single template just says “show the event” and doesn’t appear to give me any control over whether a booking form appears or not.
Help?
TLDR; I want to show two lists of events. 1. Public events that can’t be booked. 2. Private events that CAN be booked. How do I do it?
- The topic ‘Need help to filter events by "has_bookings"’ is closed to new replies.