By default, the Series page displays events in Summary View on the frontend. If you’d prefer to use a different view, you can do so with a filter. Keep in mind that this filter will change the default view for all Series on your site.
We’ll provide you with the snippet here, so let’s take a look!
The snippet
To change the default Series view to List, add the following snippet to your theme’s functions.php file or use the Code Snippets plugin . You can adjust the snippet to use a different view by replacing list
with a different view name.
add_filter(
'tec_events_pro_custom_tables_v1_series_event_view_slug',
function ( $view ) {
return 'list';
}
);
If you’d like to use a different template for the Event Series Single, you can use this snippet, making sure to point the call to locate_template()
to the template you want to use
add_filter(
'template_include',
static function ( $template ) {
if ( is_singular( 'tribe_event_series' ) ) {
// Point this to the template you want to use.
$template = locate_template( 'templates/some-template.php' );
}
return $template;
}
);
Note: After implementing the code snippet above, you may need to click the Next button twice to see the events listed on page two. This is a known issue and our team is working on a fix.