Home › Forums › Calendar Products › Events Calendar PRO › [tribe_events_list category] match all categories
- This topic has 1 reply, 2 voices, and was last updated 5 years, 10 months ago by codinglab.
-
AuthorPosts
-
May 16, 2018 at 10:37 pm #1532422codinglabParticipant
Does the [tribe_events_list category] shortcode support filtering on multiple categories using AND logic instead of OR? (Match all)?
for example [tribe_events_list category=”python-101, camps”]
This will list all events that are tagged with “python-101” OR “camps” event categories.
We would like to only show events that have both “python-101” AND “camps”.
For example, we have “python-101” events that are “camps” and we have “scratch 101” events that are “camps”, so we want to list these separately.
I know this is possible with the Event List widget and the [tribe_events] shortcode. But we are using this is in a sidebar (wrapped in a text widget), so we would like to use [tribe_events_list category]
Thanks
May 17, 2018 at 5:54 am #1532782Jaime MarchwinskiKeymasterHi Nobuko,
Thanks so much for reaching out!
Yes, the [tribe_events_list] shortcode does support adding in multiple categories. You can separate them with commas, exactly as you did in your example that you provided.
In order to show events that are both categories, you can try to create one event that is a parent category of the other, which would cause events that are listed as both cateogories to be listed.
Let me know if you have any other questions on this topic!
Thanks,
Jaime
June 8, 2018 at 9:35 am #1549437Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘[tribe_events_list category] match all categories’ is closed to new replies.