Using a custom template
-
Hello,
I wonder if anyone could help me.
The way I understand The Events Calendar working at the moment is, when the user is viewing a single event they are directed to page.php then the template in ./events/single.php is included within page.php.
Is there any way around this, I would like any events to load up say single-tribe_events.php when a single event is loaded.
At the moment I’m having to use a bit of a fudged way to get the desired result and I’m sure there is probably a better way!
At the moment I have a switch within page.php
<?php switch ($post->post_type) { case 'tribe_events': include('templates/live.php'); break; default: include('templates/page.php'); break; } ?>Thanks for any help
Josh
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Using a custom template’ is closed to new replies.