I would like to limit the number of upcoming events to “6” and add a “view more” link under the upcoming events in single-organizer.php that links to the calendar view similar to:
mysite.com/events/category/my-category/
but instead only shows events by a specific organizer:
mysite.com/events/organizer/my-organizer/
I also know I have to use the “tribe_events_single_organizer_posts_per_page” filter, but have no idea how to add it to my functions file but have no idea how to write it?
apply_filter( 'tribe_events_single_organizer_posts_per_page', 'limit_upcoming_events' );
function limit_upcoming_events() {
apply_filters( 'tribe_events_single_organizer_posts_per_page', 2 );
}