Home › Forums › Calendar Products › Events Calendar PRO › output from multiple categories
- This topic has 6 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
February 23, 2012 at 8:57 am #15557
Dawn
Participantright now I am redirecting to the events cal categories when I want to show category specific events (/events/category/catname/upcoming/).
I’ve been asked to create a filter, that will select from multiple categories.
Any thoughts?
The templates in the views/ folder dont have queries in them, so they would be hard to copy and edit to get what I want.Thanks
February 23, 2012 at 10:16 am #15578Rob
MemberHi Dawn. We can try to help you out here; but, just so I’m clear: you want to create something in list view that allows you to pull in multiple events from different categories? Have you played around with our template tag documentation to see if anything there can point you in the right direction ( at https://theeventscalendar.com/support/documentation )? Let me know if that doesn’t help, and if I’ve misunderstood the request here.
February 26, 2012 at 8:48 am #15700Dawn
ParticipantHi Rob
Yes I think you have it more or less.
The current goal is to go to a list page, where event categories are displayed in the sidebar,
where you can click categories to add posts from that category to what is show on the page.So, you might have a page that is displaying posts from 3 different cats at once.
Normally, in wp this is something like query_posts(cat=1,3,5)
but I haven’t had a lot of luck building queries on events, or finding good documentation on the site.
The documentation page above doesnt have any info on creating a query, as far as I can see.In the past, I’ve found some of this info googling, but have had some problems.
for the time being, if it were even possible to hit a url that displayed multiple cats (ie. /events/category/catname1+catname2/upcoming/), that would be really cool.
thanks!
February 27, 2012 at 11:01 am #15730Jonah
ParticipantHi Dawn, we’ve got examples of a bunch of different custom queries, including querying event categories, right here: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events
What your wanting to do is going to require more customization than we can help you out with in the forum but to give you some idea, I think what you’ll want to do is either pass taxonomy (the plugin uses taxonomy terms for categories) arguments to the URL query and refresh the page or create custom pages with queries for these categories that you are taken to when clicking on the links in the sidebar.
I hope that helps,
JonahMarch 5, 2012 at 2:07 pm #16235Dawn
ParticipantHi Jonah,
tribe_get_events() is what I needed.
I can’t figure out how to query multiple cats.thanks,
alvarMarch 5, 2012 at 2:19 pm #16236Jonah
ParticipantHi Alvar, look at the third example, it uses the tax_query argument in the query. You can find more out about tax_query here: http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
July 5, 2015 at 5:00 pm #975883Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘output from multiple categories’ is closed to new replies.
