A Shim for Event Calendar Single Event Page

If you’re using the fabulous Events Calendar plugin with Full Site Editing, you know that you can’t use it to create single event templates. Here’s some code you can add to functions.php in your child theme (or the relevant place in Code Snippets) to let you introduce Events Calendar parts to your page template using a shortcode.

add_shortcode('event_template', 'tl_load_event_template');

function tl_load_event_template($atts){

	if (isset($atts['template'])) {
		$template = $atts['template'];
	} else {
		$template = 'single-event';

	return ob_get_clean();


To use this, just add the shortcode in a block like so: