combining upcoming and past

Home Forums Calendar Products Events Calendar PRO combining upcoming and past

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #21752
    Kris LaGreca
    Participant

    I’m thinking someone has already figured this out. For a list view of events, the URL is /events/. This shows a list view of upcoming events, with a link to “previous events” (which would be /events/past/).

    Is there a way to combine both the upcoming and previous into one page?
    Thanks! Kris

    #21766
    Jonah
    Participant

    Hi Kris,

    You could do this by setting up a custom query using WP_Query or tribe_get_events() (https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events) on a custom page somewhere…

    Does that help?

    – Jonah

    #21771
    Kris LaGreca
    Participant

    Yup, that looks like it should work. As long as I can pass the category as a variable, that should do it. Thanks Jonah!

    #21779
    Jonah
    Participant

    Hi Kris,

    Event categories are taxonomies so you will need to use the tax_query args as indicated here: http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters

    The taxonomy is ‘tribe_events_cat’ and you can use those args with WP_Query or tribe_get_events.

    Cheers,
    Jonah

    #21791
    Rob
    Member

    Glad to hear this got you where you need to be, Kris. If we can do anything else down the road just holler.

    #977293
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘combining upcoming and past’ is closed to new replies.