I'm using a theme which has code to display upcoming events on a page, but it is expiring the posts on the day of instead of the day after (or at midnight). Here's the part of the code:
<?php
$currenttime = date('Ymd');
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
$args = array(
'post_type' => 'event',
'post_status' => 'publish',
'order' => 'ASC',
'orderby' => 'menu_order',
'posts_per_page' => 5,
'paged' => $paged,
'meta_query' => array(
array(
'key' => 'event_end_date',
'type' => 'DATE',
'value' => $currenttime,
'compare' => '>'
),
),
);
I tried changing "'compare' => '>'" to "'compare' => '>='" to no change, but works when I change it to less than. Thanks in advance!