Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter elyrunner

    (@elyrunner)

    Sorry to bump, but I really need to fix this widget tonight if possible.

    Am I understanding the widget correctly? When the date/time of the event passes, it should no longer be shown?

    If that is correct, it isn’t working as I have an event that passed at 8pm last night, but it still shows in the widget.

    Can you help please?

    Thank you

    Plugin Author Atte Moisio

    (@moisture)

    Hey,

    It currently shows events starting from exactly 24 hours before the current time.

    As a quick fix you can remove the “- (60 * 60 * 24)” part from

    'value' => date('Y-m-d H:i:s', time() - (60 * 60 * 24)),

    in widget-upcoming-events.php

    I’ll look into adding an option to change the offset in the next version.

    Thread Starter elyrunner

    (@elyrunner)

    Brilliant! I really appreciate your help on this! Thank You! ??

    Because I was using the plugin for our training sessions, I didn’t want the old session to be showing once it had passed. People kept saying its still showing the old training session.

    Thank you again.

    Thread Starter elyrunner

    (@elyrunner)

    Hi Atte,

    I just wanted to thank you for the new implementations in this wonderful plugin. They make things so much easier ?? Thank you!

    Karl

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Widget: Not Removing Event That's Passed’ is closed to new replies.