Hi, I am also an admin of https://piratpartiet.se and we have found what the issue is. The problem is the Impeka theme, specifically 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.
-
This reply was modified 3 years, 2 months ago by antiwrapper.