We needed to filter our events by more than one category when using the [EVENT_LIST] shortcode. This is specific to our project (eg, an event belongs to categories a et b, and another event belongs to categories b and c, and we want to display them on two different pages).
So I made a little modification which works that way, and share it here if someone else need to do so. Be aware that it is more like a hack as I modified code in some event espresso core files, meaning that future updates will have to be done with a diff/merge utility.
I wanted to interfere the least with the data in database so I used the field “category_id” (text, NULL) in the wp_events_detail table. In fact I noticed this field was always set to NULL when using the event espresso plugin so I thought it wasn’t used at all (for the moment ?).
I forgot : it’s used with a comma separated list of categories
[EVENT_LIST category_identifier=”category1, category2, category n”]
The support post ‘Filter events by more than one category with the [EVENT_LIST] shortcode’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.