Upcoming events still in list view after start

Home Forums Calendar Products Events Calendar PRO Upcoming events still in list view after start

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1324098
    Uwe Matern
    Participant

    Good evening,

    in our list view we do not want to see events where the start date is gone.

    Example: There is an event from the 15th to 22th July. Today is July 20th and still this event is shown in the upcoming event list. This does not make any sense for us because as soon as an event has started is no longer bookable for attendees, means there is no value in showing this in the list view.

    Any suggestion to solve this issue?
    Best regards
    Uwe

    #1324839
    Patricia
    Member

    Hey Uwe,

    Thanks for contacting us!

    This behavior you described is the default/expected. Since the event has started but not ended, it is considered to be “in progress”.

    To hide/remove events that already started from the list view, it would require modifying the queries on Query.php file in “wp-content/plugins/the-events-calendar/src/Tribe/Query.php”

    I do want to note that we are fairly limited in how much we can support custom development questions like this, but to help you get started, the following clause is the one that traps ongoing events:

    $within_clause = $wpdb->prepare( "({$postmeta_table}.meta_value <= %s AND $event_end_date >= %s )", $start_date, $start_date );

    We do have a list of recommended developers who could help you out with the code if you need it:

    https://theeventscalendar.com/knowledgebase/find-a-customizer/

    I hope this helps! Thank you and have a great weekend!

    Regards,

    Patricia

    #1334689
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Upcoming events still in list view after start’ is closed to new replies.