Viewing 10 replies - 1 through 10 (of 10 total)
  • I had the same problem. The solution was to compare the meta value of the event start date with todays date.

    <?php
    		$todaysDate = date('Y-m-d G:i:s');
    		$cal_query = new wp_query('category_name=Events&nopaging=true&meta_key=_EventStartDate&meta_compare=>=&meta_value='.$todaysDate.'&orderby=meta_value&order=ASC'); ?>
    		<?php while ($cal_query->have_posts()) : $cal_query->the_post(); ?>
     //your content here
    <?php endwhile; // posts ?>

    Not sure what you mean with the second question though. You mean as a single page view?

    CHM82, Where’d you put that? I’m having the same problem (I posted about it yesterday but got no reply).

    Any solution to this? Definitely a big issue.

    @r3volution11 and @chm82

    If you’re using 1.6.3, the way it should work is a day-of event should show in the list and the widget until the end time of the event is passed. All-day event should show. Is this what you’re getting?

    Justin

    No, the event is disappearing the day of the event.

    Example:

    Today is July 19th. Current time is 11:30AM.

    Event is July 19th at 8:00PM.

    Event is not appearing on the widget.

    Found a fix that seems to be working so far:

    On line 546 of template-tags.php change .$spEvents->date. to .$todaysDate.

    Then make a new line before the first $whereClause

    Put the following:

    $todaysDate= date(‘Y-m-d G:i:s’);

    Some how The Events Calendar’s internal clock is messed up so this tells the query to go by the correct time.

    BTW, I’m guessing that this will only work based on the servers local time.

    Still trying but I can’t reproduce the error. Can you make sure you have your timezone offset set correctly in Dashboard > Settings > General ?

    Justin

    Justin, I’ve purposefully offset the time to -12 UTC just to try to get it to work to no avail.

    I’ve definitely went over all of the simple stuff several times.

    It’s got to be an error in the code some where.

    I’m experiencing the same problem as r3volution11. The current day’s event is not appearing in the Upcoming Events widget.

    WP 2.9.2
    The Events Calendar 1.6.3

    Like r3volution11…

    I’ve purposefully offset the time to -12 UTC just to try to get it to work to no avail.

    I’ve definitely went over all of the simple stuff several times.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: The Events Calendar] Todays event not showing in widget…’ is closed to new replies.