Forum
How do I not show a specified events category in a listing options array?
A client site has two calendars, one for events related to their club, and another for events being booked at their club. On the homepage is to be a listing of the former.
How do I specify in the options array to show events in all categories except bookings, for example?
Hello I have done something similar to show featured events on the home page of NW Bloodbikes I used this code:
You would just have to add the other categories except bookings and increase the count I think.
That's essentially what I have now, although its not optimal. What if the client adds new event categories? The array would need to be updated each time.
You can use
perch_events_categories()
with theskip-template
option to get an array of categories which you can then iterate through.What does this function perch_events_categories() do? How can I output a list of categories like perch_gallery_albums()?
Ok, I found it on the events runtime file, thanks