- This topic has 0 replies, 1 voice, and was last updated 2 years, 10 months ago by .
-
Topic
-
On our site the event disappear when the event the starts, instead of when it ends. The problem lies with the Impeka WPBakery Extension.
In the file impeka-wpb-extension/templates/events.php there is this code snippet to exclude past events:
if ( 'yes' == $exclude_past_events ) { $args['meta_query'] = array( array( 'key' => '_EventStartDate', 'value' => date('Y-m-d H:i:s'), 'compare' => '>=', 'type' => 'DATE' ) ); }The problem here is that _EventStartDate seems to contain just the date and not the time but the value it compares against includes time: date(‘Y-m-d H:i:s’). If you change value to: date(‘Y-m-d’) the issue is solved.
- You must be logged in to reply to this topic.
