output from multiple categories

Home Forums Calendar Products Events Calendar PRO output from multiple categories

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #15557
    Dawn
    Participant

    right 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

    #15578
    Rob
    Member

    Hi 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.

    #15700
    Dawn
    Participant

    Hi 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!

    #15730
    Jonah
    Participant

    Hi 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,
    Jonah

    #16235
    Dawn
    Participant

    Hi Jonah,

    tribe_get_events() is what I needed.
    I can’t figure out how to query multiple cats.

    thanks,
    alvar

    #16236
    Jonah
    Participant

    Hi 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

    #975883
    Support Droid
    Keymaster

    This 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘output from multiple categories’ is closed to new replies.