Unlimited events widget

Home Forums Calendar Products Events Calendar PRO Unlimited events widget

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1576182
    joe
    Participant

    Hi I have a project coming up and need to find a plug in that will support what I am trying to do. I need to be able to list between 15-20 events on the home page each week. I see the upcoming events widget only displays uptown 10 event. Is there a way to increase that number so I can display more upcoming events with the widget?

    #1576210
    Jeremy
    Keymaster

    Hi Joe,

    Thanks for reaching out to us! I’d be happy to help you 🙂

    Yes, you can increase the number of events which are displayed in the upcoming events widget. In order to do so, you may add this snippet in your child theme’s functions.php file.

    I hope this helps,

    Cheers,
    Jeremy

    #1576227
    joe
    Participant

    Hi there thank you very much. I tried the snippet you sent and all it did was print the code out across the top of every page. List the entire snippet code appears as a line across the top of page and does not add functionality. Did I do something wrong? This is what I added:

    add_filter(‘widget_display_callback’, ‘increase_event_widget_limit’, 10, 2);

    /**
    * Test if the current widget is an Advanced List Widget and fix the event limit if it is.
    */
    function increase_event_widget_limit(array $instance, $widget) {
    if (is_a($widget, ‘Tribe__Events__Pro__Advanced_List_Widget’))
    $instance[‘limit’] = 30;

    return $instance;
    }

    #1576826
    Jeremy
    Keymaster

    Hi Joe,

    Be sure that you’re using ' and not ’.

    Also, make sure there’s not a closing php tag ?> before the code you added.

    Please let me know how it goes.

    Cheers,
    Jeremy

    #1593011
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Unlimited events widget’ is closed to new replies.