index2.php for sure cannot be a Page template. See the Codex about Pages and Page Templates:
http://codex.ww.wp.xz.cn/Pages#Page_Templates
Actually the template is page2.php.
I wanted to use the example because the index.php calls the header, sidebar, and footer phps which are seperate in the semiologic theme. When I use page2.php as a page template I want to use some of the same footer and header pages but a different sidebar template.
Then instead of get_sidebar function use a regular
include sidebar2.php code and you are done.
But I am using this:
<?php require_once(TEMPLATEPATH . ‘/sidebar2.php’); ?>
in my footer2.php file.
My page2.php contains:
<?php
require_once dirname(__FILE__) . ‘/install.php’;
require_once(TEMPLATEPATH . ‘/header.php’);
if ( function_exists(‘sem_display_posts’) )
sem_display_posts();
require_once(TEMPLATEPATH . ‘/footer2.php’);
?>
Yup, that’s the way to do it. Don’t forget to assign a name to the template as described in the codex and to select it to your static page.
Ah-hah – found the issue.
Actually the problem is that I am trying to use a different page template with the static home page plugin, on my home page. The different page template doesn’t seem to work there.
Is there a work around?
yeah. rename your template home.php
You are AWESOME!
I should have known – ‘home’ slug home.php
Thanks so much