Title: WordPress Gantry
Last modified: August 20, 2016

---

# WordPress Gantry

 *  [tascam424](https://wordpress.org/support/users/tascam424/)
 * (@tascam424)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/wordpress-gantry/)
 * Hi, I hope someone can help me here, my question relates to Gantry, so i may 
   be in the wrong place here, but i haven’t had any response on the Gantry Forums
   🙁
    If anybody can help me i would be greatly appreciative. I am using the Comparepress
   Plugin which displays data on “fake pages” generated on the fly. The problem 
   is that the plugin is designed to use single.php and it looks for it in it’s 
   usual location in the theme root, the code is below
 *     ```
       class ComparePressFakePage {
   
           var $page_slug;
           var $page_title;
           var $page_content;
           var $ping_status = 'open';
   
           function ComparePressFakePage($options) {
               $this->page_slug = $options['slug'];
               $this->page_title = $options['title'];
               $this->page_content = $options['content'];
               /*
                * New template redirect function so user can use a new WordPress template
                * just for the fake (mobile phone deals) pages
                */
               add_action('template_redirect', array(&$this, 'getTemplate'));
               add_filter('the_posts', array(&$this, 'detectPost'));
           }
   
           /*
            * New template redirect function
           */
   
           function getTemplate() {
               # If a user wants to customise the look of the fake deals page they need to create this page:
               $this->_template = 'compare-press-fake-page.php';
   
               if (file_exists(TEMPLATEPATH . '/' . $this->_template))
                   include(TEMPLATEPATH . '/' . $this->_template);
               else
               # use standard single.php
                   include(TEMPLATEPATH . '/single.php');
               die();
           }
   
           function createPost() {
               $post = new stdClass;
               $post->post_author = 1;
               $post->post_name = $this->page_slug;
               $post->guid = get_bloginfo('wpurl') . '/' . $this->page_slug;
               $post->post_title = $this->page_title;
               $post->post_content = $this->getContent();
       ```
   
 * As you can see the plugin looks for single.php include(TEMPLATEPATH . ‘/single.
   php’);
    But with Gantry single.php is located in html folder, i have tried changing
   the path like so include(TEMPLATEPATH . ‘/html/single.php’); But this does not
   work, as i believe Gantry does not allow direct access to single.php. Any ideas
   anybody ? Appreciate any help you may be able to give.

The topic ‘WordPress Gantry’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [tascam424](https://wordpress.org/support/users/tascam424/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/wordpress-gantry/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
