<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Select a specific template - not working</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 19 Jun 2013 03:33:49 +0000</pubDate>

<item>
<title>jrobben on "Select a specific template - not working"</title>
<link>http://themeshaper.com/forums/topic/select-a-specific-template-not-working#post-7672</link>
<pubDate>Wed, 04 Nov 2009 05:30:40 +0000</pubDate>
<dc:creator>jrobben</dc:creator>
<guid isPermaLink="false">7672@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks, easy when you know how.  lol
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Select a specific template - not working"</title>
<link>http://themeshaper.com/forums/topic/select-a-specific-template-not-working#post-7663</link>
<pubDate>Tue, 03 Nov 2009 17:30:10 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">7663@http://themeshaper.com/forums/</guid>
<description>&#60;blockquote&#62;&#60;p&#62;resolving as true for any page, false for home, and posts, categories&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;That's beacause all pages use page templates. You need to specify which template.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;echo &#38;quot;is_page_template(&#38;#39;2col-page.php&#38;#39;): &#38;quot;; Var_dump( is_page_template(&#38;#39;2col-page.php&#38;#39;) );&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>jrobben on "Select a specific template - not working"</title>
<link>http://themeshaper.com/forums/topic/select-a-specific-template-not-working#post-7662</link>
<pubDate>Tue, 03 Nov 2009 17:29:50 +0000</pubDate>
<dc:creator>jrobben</dc:creator>
<guid isPermaLink="false">7662@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;just so you know; for now, these are the changes to the template page that I want to make&#60;/p&#62;
&#60;p&#62;// from style.css (line 248) increase width from 560px&#60;br /&#62;
#container {&#60;br /&#62;
width:700px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// style.css (line 347) to display:none  or use function to remove&#60;br /&#62;
#secondary {&#60;br /&#62;
float:left;&#60;br /&#62;
width:200px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// reposition primary sidebar style.css and make postion fixed or relative to the top right corner of the container (line 335)&#60;br /&#62;
#primary {&#60;br /&#62;
float:right;&#60;br /&#62;
margin-right:20px;&#60;br /&#62;
width:200px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// remove the comming attractions -&#60;br /&#62;
// either display none or turn off function that creates it style.css (line 315)&#60;/p&#62;
&#60;p&#62;#above-primary {&#60;br /&#62;
-moz-background-clip:border;&#60;br /&#62;
-moz-background-inline-policy:continuous;&#60;br /&#62;
-moz-background-origin:padding;&#60;br /&#62;
background:red none repeat scroll 0 0;&#60;br /&#62;
color:green;&#60;br /&#62;
float:right;&#60;br /&#62;
margin:0 20px 10px 0;&#60;br /&#62;
padding:5px;&#60;br /&#62;
width:400px;&#60;br /&#62;
}
&#60;/p&#62;</description>
</item>
<item>
<title>jrobben on "Select a specific template - not working"</title>
<link>http://themeshaper.com/forums/topic/select-a-specific-template-not-working#post-7661</link>
<pubDate>Tue, 03 Nov 2009 16:58:08 +0000</pubDate>
<dc:creator>jrobben</dc:creator>
<guid isPermaLink="false">7661@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;sorry I should have posted the actual code here is function have ran to test for various pages. I  commented out all but one testing for is_page_template&#60;br /&#62;
I set this up as part of my trouble shooting. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function test_code() {
// echo &#38;quot;is_single: &#38;quot;; var_dump( is_single() );
// echo &#38;quot;is_home: &#38;quot;; var_dump( is_home() );
// echo&#38;quot;is_page: &#38;quot;; var_dump( is_page() );
/*echo &#38;quot;is_page_template: &#38;quot;; var_dump( is_page_template() ); */
/* echo &#38;quot;is_page_template(&#38;#39;page-template-2col-page-php&#38;#39;): &#38;quot;; Var_dump( is_page_template() ); */
echo &#38;quot;is_page_template(&#38;#39;2col-page.php&#38;#39;): &#38;quot;; Var_dump( is_page_template() );
}
add_action(&#38;#39;thematic_belowheader&#38;#39;, &#38;#39;test_code&#38;#39;);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;currently running on &#60;a href=&#34;http://www.cookingsalmon.net&#34; rel=&#34;nofollow&#34;&#62;www.cookingsalmon.net&#60;/a&#62; and resolving as true for any page, false for home, and posts, categories
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Select a specific template - not working"</title>
<link>http://themeshaper.com/forums/topic/select-a-specific-template-not-working#post-7659</link>
<pubDate>Tue, 03 Nov 2009 16:17:16 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">7659@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;hi jrobben-&#60;br /&#62;
I think you may be going about it in the wrong way. try something like: &#60;code&#62;is_page_template(&#38;#39;about.php&#38;#39;)&#60;/code&#62;&#60;br /&#62;
This may helpalso:&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Conditional_Tags#Is_a_Page_Template&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Conditional_Tags#Is_a_Page_Template&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>jrobben on "Select a specific template - not working"</title>
<link>http://themeshaper.com/forums/topic/select-a-specific-template-not-working#post-7658</link>
<pubDate>Tue, 03 Nov 2009 15:44:00 +0000</pubDate>
<dc:creator>jrobben</dc:creator>
<guid isPermaLink="false">7658@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I have been trying to make on the changes to a template that users will select for a particular type of post. but I can not get the an if is_page_template = to mytemplate.php to work. &#60;/p&#62;
&#60;p&#62;These pages will be made off and on so page id# or something similar will not work for this use.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
