Displaying Past Events In Separate Section On Category Page

Home Forums Calendar Products Events Calendar PRO Displaying Past Events In Separate Section On Category Page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #46734
    Jason
    Participant

    Is it possible to modify the list.php page to display past events in a separate query? I know that adding /past/ to a category will display the past events for that category, but I’d like to include it on the same page if possible.

    Any snippets in the right direction would be greatly appreciated.

    Thanks in advance,

    Jason

    #46836
    Jonah
    Participant

    Hi Jason,

    Unfortunately no, this is not possible with the provided events list page. If you wanted to do something like this, you would need to build your own custom query on another page somewhere. You can do a custom query with our own tribe_get_events() function: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events or with WP_Query: https://gist.github.com/jo-snips/5112025

    I hope that helps!

    #46841
    Jason
    Participant

    Hi Jonah,

    Thanks for the explanation. We’ve settled on an interim solution, but I’ll consult the links you provided if we need to add a custom query down the line.

    Best,

    Jason

    #46935
    Jonah
    Participant

    Sounds good Jason, let us know if you need anything else.

    #978999
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Displaying Past Events In Separate Section On Category Page’ is closed to new replies.