I presently possess some code setup to show approaching occasions set through the admin in line with the date from the event. The approaching occasions are sorted through the next approaching event, beginning in the top, after which heading down. I have limited it to simply two.

But, when the beginning of your day comes (e.g. night time of event date), the big event vanishes. I would like the big event to still surface night time of the following day (e.g. the beginning of the following day). At this time, the big event is vanishing the 2nd the day's the big event comes...

Does anybody understand how to change this using the current code which i have?

<div class="boxer events">
<h3>Upcoming Events</h3>
<?php
//The Query
query_posts(array(
'posts_per_page' => 2,
'meta_key' => 'event_date',
'meta_value' => date('Y-m-d'),
'meta_compare' => '>',
'orderby' => 'meta_value',
'order' => 'ASC'
));

//The Loop
$count = 0;
while ( have_posts() ) : the_post(); $count++;
//The Title
$title = $post->post_title;
$event_datee = get_post_meta($post->ID, 'event_date', true);
?>
<dl>
<dt><a title="<?php echo $title; ?>" href="<?php the_permalink(); ?>"><?php echo $title; ?></a></dt>
<div class="postdate">
<div class="month m-<?php $dtes = get('event_date'); $timestamp = strtotime($dtes); echo date('n', $timestamp); //month ?>"></div>
<div class="day d-<?php $dtes = get('event_date'); $timestamp = strtotime($dtes); echo date('d', $timestamp); //day ?>"></div>
<div class="year y-<?php $dtes = get('event_date'); $timestamp = strtotime($dtes); echo date('Y', $timestamp); //year ?>"></div>
</div>
<dd><?php the_excerpt(); ?></dd>
</dl>
<?php endwhile; ?>
</div><!--end boxerevents-->

Interesting help!

The comparison for that totally searching in the date from today date('Y-m-d')

Rather you are able to tell it to make use of tomorrow because it to obtain things happening today using yesterdays date. Try replacing the date(...) with date('Y-m-d', strtotime('-1 day'))

Note: I believe you should utilize -1 here however it may need +1 rather.

I additionally think you may have the ability to just swap the 'meta_compare' => '>', for 'meta_compare' => '>=', spot the > transformed to >= by which situation you'd just leave the date(...) part because it is but this is dependent how this wordpress plugin stores dates.

My best guess out of your code is this is actually the area:

<?php
//The Query
query_posts(array(
'posts_per_page' => 2,
'meta_key' => 'event_date',
'meta_value' => date('Y-m-d'),
'meta_compare' => '>',
'orderby' => 'meta_value',
'order' => 'ASC'
));

It appears enjoy it brings the occasions (not necessarily removing them) and for that reason it doesn't enable you to get old occasions just the current date('Y-m-d') and let's start.

However it is really an educated guess getting no background within this 'event' / wordpress plugin.