Title: [Plugin: The Events Calendar] not using single.php?
Last modified: August 19, 2016

---

# [Plugin: The Events Calendar] not using single.php?

 *  [twelfthdragon](https://wordpress.org/support/users/twelfthdragon/)
 * (@twelfthdragon)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-the-events-calendar-not-using-singlephp/)
 * I am using premium version 1.0.
 * I put the template files into /events inside my theme folder as per instructions.
 * The event page should be using single.php yet it is not. it’s still using list.
   php. how to get it to use single.php?
 * thanks. really great plugin. the best.

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

 *  [heyda](https://wordpress.org/support/users/heyda/)
 * (@heyda)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-the-events-calendar-not-using-singlephp/#post-1554098)
 * I had the same problem.
 * – open events/the-event-calendar.class.php
    – back up this file. – go to line
   733. – select lines 733 – 758 (function templateChooser) – paste this code: public
   function templateChooser($template) {
 * // hijack to iCal template
    if ( get_query_var(‘ical’) || isset($_GET[‘ical’])){
   $this->iCalFeed(); die; }
 *  if( is_feed() || get_query_var( ‘post_type’ ) != self::POSTTYPE ) {
    return 
   $template; }
 *  $this->constructDaysOfWeek();
 *  // single event
    if ( is_single() ) { return $this->getTemplateHierarchy(‘single’);}//
   list view elseif ( sp_is_upcoming() || sp_is_past() ) { return $this->getTemplateHierarchy(‘
   list’); } // grid view else { return $this->getTemplateHierarchy(‘gridview’);}
 *  }
 * – now it should be ok
    All I did was change the order in the function.
 * Remember if you update the plugin, this modification will probably be lost. But
   for now it should help you out.
 *  [Matt Wiebe](https://wordpress.org/support/users/mattwiebe/)
 * (@mattwiebe)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-the-events-calendar-not-using-singlephp/#post-1554163)
 * Hey guys. I’m one of the devs on The Events Calendar Pro. We’ve heard a few complaints
   about this, and I’ll be including Heyda’s switch of single and list view in the
   soon-to-be-released 1.1 update.

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

The topic ‘[Plugin: The Events Calendar] not using single.php?’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [Matt Wiebe](https://wordpress.org/support/users/mattwiebe/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-the-events-calendar-not-using-singlephp/#post-1554163)
 * Status: not resolved