• Resolved rakesh1974

    (@rakesh1974)


    Hi

    Is there any way to show all the events on one page including past present and future events, we have very few events and past events are not shown in the current view we have to click on, “< past events” link below the current event…

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support masoodak

    (@masoodak)

    Hi @rakesh1974,

    Thanks for reaching out!

    By default, the main events page starts with upcoming events, and to include past events; you will need to override the query so that it consists of both past and upcoming events.

    The following filter hook can be used to override and modify the query parameters,

    https://docs.theeventscalendar.com/reference/hooks/tribe_events_views_v2_view_this-slug_template_vars/

    I hope this helps.

    Kind regards,
    Masood

    Thread Starter rakesh1974

    (@rakesh1974)

    But where should I add or replace this hook
    path to the file given in the doc is src/Tribe/Views/V2/View.php
    so is the view.php file to be edited if yes where or which line should I replace that filter code…
    Please need this help here.

    Plugin Support Abz

    (@abzlevelup)

    Hi @rakesh1974, you could insert it into your functions.php on your theme or use the third-party plugin Code Snippets.

    Plugin Support Abz

    (@abzlevelup)

    This thread has been inactive for a while, so we’ll go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up, and we’d be happy to help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show all past current and future events together’ is closed to new replies.