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 belowclass 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.