• Resolved Warren

    (@rabbitwordpress)


    Hi There,

    Is it possible to increase the number of items displayed in the Events Widget?

    Currently the Show: limit is 10, 12 or more would be better.

    Thanks for sharing such great plugin, nice work!

    Kind regards
    Warren

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there @rabbitwordpress!

    Thanks for the kind words! We’re stoked that you are enjoying the plugin.

    This can definitely be done, just pop this snippet into your functions.php file:

    add_filter( ‘tribe_events_list_widget_query_args’, ‘tribe_add_many_events_to_list_widget’ );

    function tribe_add_many_events_to_list_widget( $args ) {
     
        if ( ! isset( $args['posts_per_page'] ) ) {
            return $args;
        }
     
        $args['posts_per_page'] = 20;
     
        return $args;
    }

    Hope that helps!

    Thread Starter Warren

    (@rabbitwordpress)

    Thank you so much Ed, that works perfectly.

    Have a great weekend!

    Kind regards
    Warren

    Awesome! Glad that helped.

    I’m going to go ahead and close out this thread — don’t hesitate to create a new one any time you need help!

    Take care,
    Ed 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Events Widget Increase Show: Limit Higher than 10’ is closed to new replies.