Title: Using a custom template
Last modified: August 20, 2016

---

# Using a custom template

 *  Resolved [jmahony](https://wordpress.org/support/users/jmahony/)
 * (@jmahony)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/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
 * [http://wordpress.org/extend/plugins/the-events-calendar/](http://wordpress.org/extend/plugins/the-events-calendar/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [jmahony](https://wordpress.org/support/users/jmahony/)
 * (@jmahony)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/using-a-custom-template/#post-3178257)
 * Ignore this, I moved my site to a new server and it appears to be working as 
   expected now, weird!
 *  [Rob La Gatta](https://wordpress.org/support/users/roblagatta/)
 * (@roblagatta)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/using-a-custom-template/#post-3178293)
 * Hey there jmahony. Thanks for the note here. Awesome to hear moving to a new 
   server did the trick; not sure why that would be the case but all is well that
   ends well, right?
 * Going to mark this RESOLVED since it seems like you’re set, but please let me
   know if you disagree. Otherwise feel free to reach out if we can do anything 
   else in the future.
 *  Thread Starter [jmahony](https://wordpress.org/support/users/jmahony/)
 * (@jmahony)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/using-a-custom-template/#post-3178296)
 * Yes that fine, thank you!
 *  [Rob La Gatta](https://wordpress.org/support/users/roblagatta/)
 * (@roblagatta)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/using-a-custom-template/#post-3178300)
 * Great, thanks for your support and patience. If you ever find yourself with a
   free moment and would be willing to write us a review or give a “Works” rating
   here on the dot-org forum, we sure would appreciate it.
 * Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Using a custom template’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Rob La Gatta](https://wordpress.org/support/users/roblagatta/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/using-a-custom-template/#post-3178300)
 * Status: resolved