Countdown Widget

Home Forums Calendar Products Events Calendar PRO Countdown Widget

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1239016
    William
    Participant

    I’m trying to get the countdown widget going and the event selection pull down has a hard limit. Unfortunately our event, graduation, is beyond May 5th.

    #1240407
    Barry
    Member

    Hi William,

    Sorry to hear that!

    If you are comfortable adding custom code – either to your own plugin used to house customizations or even to your theme’s functions.php file – you could workaround this in one or both of a couple of ways:

    function raise_countdown_limit() {
        return 500;
    }
    
    add_filter( 'tribe_events_pro_countdown_widget_limit', 'raise_countdown_limit' );

    The above snippet should extend the hard limit and might help you capture the event you are interested in … of course, raising the limit like this can have performance and memory considerations (so you may want to remove it after making the selection).

    Alternatively:

    function alter_countdown_page() {
        return 2; // If this doesn't work, try 3, 4, ... etc
    }
    
    add_filter( 'tribe_events_pro_countdown_widget_paged', 'alter_countdown_page' );

    The above snippet works slightly differently. If 250 events are listed in the selector, this will alter the query so that the next 250 are listed instead.

    I realize that is arguably less than ideal, but it might provide you with a way of achieving your goal in the short term.

    #1252862
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Countdown Widget’ is closed to new replies.