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 (/wp-content/themes/your-active-theme/ folder).

/* 1 - Define another template */
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;
	}
);

/* 2 - Remove the Series Calendar view from being injected into your custom template */

use TEC\Events_Pro\Custom_Tables\V1\Templates\Series_Filters;

add_filter(
	'template_include',
	static function ( $template ) {
		if ( ! has_action( 'tribe_common_loaded', 'tribe_register_pro' ) ) {
			return $template;
		}

		remove_filter( 'the_content', [ tribe( Series_Filters::class ), 'inject_content' ], 10 );

		return $template;
	},
	15
);

Opting Out of Series Content Injection

By default, the Series page displays a list of events related to the series. If you’d prefer to opt out and prevent this list from being displayed, you can use the follwoing filter that allows you to disable the automatic injection of the series content into the_content.

Returning false, the series list will no longer be shown on the series page.

Here’s the snippet:

add_filter( 'tec_events_pro_enable_series_content_injection', '__return_false' );

Just like the other snippets, you can add this to your theme’s functions.php file or use a plugin like Code Snippets.