WordPress.org

Support

Support » Plugins and Hacks » The Events Calendar » [Plugin: The Events Calendar] Today's event not displayed

[Plugin: The Events Calendar] Today's event not displayed

  • I have just started using this plugin and I like it a lot, thanks! However, it drops the current day’s event from the display, even though the event is scheduled for the evening and hasn’t happened yet. I have checked my WP timezone and that is correct. All of my posts and other system timestamps are okay.

    Any ideas? Thanks.

Viewing 15 replies - 1 through 15 (of 33 total)
  • I am having this same problem which is pretty inconvenient if somebody goes to check the time of an event on that day and can’t find it.

    I’ve noticed the same thing. Can someone point out where the reference is for the sidebar output? I can get my developer to modify the PHP function to only ignore items that have already finished and post his code change here. Or better yet, the plug-in authors can make that change. It shouldn’t be very hard.

    Modify the-events-calendar.class.php

    $query = "
    SELECT * FROM $wpdb->posts
    LEFT JOIN $wpdb->postmeta ON($wpdb->posts.ID = $wpdb->postmeta.post_id)
    WHERE
    $wpdb->postmeta.meta_key = '_EventStartDate'
    AND $wpdb->postmeta.meta_value = CURRENT_DATE()";

    instead of CURRENT_DATE() replace with date()

    Thanks amynmcgrath! That fix worked perfectly! xoxo

    Hi all,

    New here (and to php/html in general)

    I am having exactly the same problem as above. I have tried the fix suggested above (and checked it over several times) but it does not seem to resolve the problem. Anything else I could try?

    Thanks,
    Michael

    I tried that fix, too, but it didn’t work. Anyone have another idea?

    Thanks!

    Did you make sure you have the time set correctly in your WordPress installation? Not sure why the solution works for some and not for others. My fix is still working for me.

    Time is set correctly. Oddly enough, today’s event is now displaying. I tried the fix above, it didn’t work so I changed the php file back to how it was. The only other thing I did was to switch the event from “all day” to a specific time, and then back again, when specific time didn’t work. Very odd.

    I’m glad it’s working now but have no idea how long it will stay “fixed.” Any other suggestions would be appreciated (for future reference.)

    thanks!

    djenk, I followed your steps and achieved the same results. This fix will work for today’s important events, but I have a feeling the glitch will be back tomorrow.

    Anyone have a permanent fix for displaying the current day’s events in List View?

    Not sure how to help. My fix (above) is still working for me with no problems. Do you have the latest version of WordPress installed?

    amynmcgrath, Yes, I changed CURRENT_DATE() to date() on line 599 in file the-events-calendar.class.php

    I’m using the most current versions of WordPress(3.0.1) and The Events Calendar(1.6.4).

    Apparently this issue has cropped up again. I’ve checked my code and my ‘fix’ is there, but again I’ve got events disappearing from the upcoming events a few hours before they should. Anyone else have any ideas? I’ll keep trying things and will let you know if I figure it out.

    Would appreciate some help from the plug-in developer. It’s a great plug-in, but this is a bug that needs to be fixed.

    An upgrade to the plugin must have wiped out my fix (forgot about that).

    NOTE: I cannot make this code change inside the plugin editor in WordPress. I am able to make my ‘fix’ work only if I change it directly on the server through a text editor. May want to try that, urban1.

    I had to make the change with a text editor, as well. My calendar’s list view is currently showing today’s events. Your fix must be working. Thanks for the update.

    Today’s events disappeared off the homepage upcoming events again. Does anyone else have any ideas? Perhaps their ‘premium events calendar’ works?

Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘[Plugin: The Events Calendar] Today's event not displayed’ is closed to new replies.
Skip to toolbar