Home › Forums › Calendar Products › Events Calendar PRO › Upcoming events still in list view after start
- This topic has 3 replies, 2 voices, and was last updated 6 years, 9 months ago by Uwe Matern.
-
AuthorPosts
-
July 20, 2017 at 2:10 pm #1324098Uwe MaternParticipant
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
UweJuly 22, 2017 at 7:37 am #1324839PatriciaMemberHey 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
August 13, 2017 at 9:35 am #1334689Support DroidKeymasterHey 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 -
AuthorPosts
- The topic ‘Upcoming events still in list view after start’ is closed to new replies.