<font color="#333333"><font size="2"><font face="arial,helvetica,sans-serif">which one won&#39;t locate_template() or get_template_part()?<br clear="all"></font></font></font><div><div><font face="arial, helvetica, sans-serif"><br>

</font></div><div><font face="arial, helvetica, sans-serif">----</font></div><div><font face="arial, helvetica, sans-serif"><strong>Emil Uzelac</strong> | ThemeID | T: 224-444-0006 | Twitter: @EmilUzelac | E: <a href="mailto:emil@themeid.com" target="_blank">emil@themeid.com</a> | <a href="http://themeid.com/" target="_blank">http://themeid.com</a></font></div>


<div><font color="#999999" face="arial, helvetica, sans-serif">Make everything as simple as possible, but not simpler. - Albert Einstein</font></div><br>
<br><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 6:11 PM, Simon Prosser <span dir="ltr">&lt;<a href="mailto:pross@pross.org.uk">pross@pross.org.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

That wont load it as a template file.<div><div><div></div><div class="h5"><br><div class="gmail_quote">On 28 July 2011 00:05, Robert Ambartsumov <span dir="ltr">&lt;<a href="mailto:robert6292@gmail.com" target="_blank">robert6292@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">use get_template_part( &#39;subfolder/file&#39;)<div><div></div><div><br><br><div class="gmail_quote">On Thu, Jul 28, 2011 at 1:59 AM, Emil Uzelac <span dir="ltr">&lt;<a href="mailto:emil@themeid.com" target="_blank">emil@themeid.com</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font color="#333333"><font size="2"><font face="arial,helvetica,sans-serif">The only option I could think of from top of my head is:<br clear="all">




</font></font></font><div><div><font face="arial, helvetica, sans-serif"><br>

</font></div><div><font face="arial, helvetica, sans-serif"><span style="font-family:&#39;Lucida Grande&#39;, Verdana, &#39;Bitstream Vera Sans&#39;, Arial, sans-serif;font-size:12px;line-height:22px"><pre style="font-variant:normal !important;text-align:left !important;margin-top:0px;margin-right:0px;margin-bottom:22px;margin-left:0px;padding-top:11px;padding-right:11px;padding-bottom:11px;padding-left:11px;font-family:Consolas, Monaco, &#39;Courier New&#39;, Courier, monospace;background-color:rgb(240, 240, 240);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(218, 218, 218);border-right-color:rgb(218, 218, 218);border-bottom-color:rgb(218, 218, 218);border-left-color:rgb(218, 218, 218);font-size:12px;line-height:1.3em;overflow-x:auto;overflow-y:auto;color:rgb(0, 0, 0);font-weight:inherit;white-space:pre-wrap;word-wrap:break-word;background-repeat:initial initial">

&lt;?php
/*
Template Name: Blog
*/
?&gt;</pre></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-family:&#39;Lucida Grande&#39;, Verdana, &#39;Bitstream Vera Sans&#39;, Arial, sans-serif;font-size:12px;line-height:22px"><pre style="font-variant:normal !important;text-align:left !important;margin-top:0px;margin-right:0px;margin-bottom:22px;margin-left:0px;padding-top:11px;padding-right:11px;padding-bottom:11px;padding-left:11px;font-family:Consolas, Monaco, &#39;Courier New&#39;, Courier, monospace;background-color:rgb(240, 240, 240);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(218, 218, 218);border-right-color:rgb(218, 218, 218);border-bottom-color:rgb(218, 218, 218);border-left-color:rgb(218, 218, 218);font-size:12px;line-height:1.3em;overflow-x:auto;overflow-y:auto;color:rgb(0, 0, 0);font-weight:inherit;white-space:pre-wrap;word-wrap:break-word;background-repeat:initial initial">

&lt;?php get_template_part( &#39;blog-template&#39;);¬†?&gt;</pre></span></font></div><div><font face="arial, helvetica, sans-serif">But with this you&#39;re not gaining whole lot.</font></div><div><font face="arial, helvetica, sans-serif"><br>






</font></div><div><font face="arial, helvetica, sans-serif">Basically¬†i.e. blog.php is a placeholder and blog-template.php is the actual template.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div>






<div><font face="arial, helvetica, sans-serif">Emil</font></div><div><font face="arial, helvetica, sans-serif">----</font></div><div><font face="arial, helvetica, sans-serif"><strong>Emil Uzelac</strong> | ThemeID | T: <a href="tel:224-444-0006" value="+12244440006" target="_blank">224-444-0006</a> | Twitter: @EmilUzelac | E: <a href="mailto:emil@themeid.com" target="_blank">emil@themeid.com</a> | <a href="http://themeid.com/" target="_blank">http://themeid.com</a></font></div>







<div><font color="#999999" face="arial, helvetica, sans-serif">Make everything as simple as possible, but not simpler. - Albert Einstein</font></div><br>
<br><br><div class="gmail_quote"><div><div></div><div>On Wed, Jul 27, 2011 at 5:26 PM, Sayontan Sinha <span dir="ltr">&lt;<a href="mailto:sayontan@gmail.com" target="_blank">sayontan@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>

Hi,<br>Is there a way to have page templates in a sub-folder of a theme or do they have to be in the root folder? I know that using filter hooks an a template from a sub-folder can be added to the drop-down list of templates in the &quot;Edit Page&quot; screen (the way BP does it). Is there an easier way to do this?<br>







<br>Regards,<br>Sayontan.<br clear="all"><br>-- <br>Sayontan Sinha<br><a href="http://mynethome.net" target="_blank">http://mynethome.net</a> | <a href="http://mynethome.net/blog" target="_blank">http://mynethome.net/blog</a><br>






<font color="#888888">
--<br>Beating Australia in Cricket is like killing a celebrity. The death gets more coverage than the crime.<br><br>
</font><br></div></div>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br><br clear="all"><br></div></div>-- <br>My Blog: <a href="http://www.pross.org.uk/" target="_blank">http://www.pross.org.uk/</a><br>Plugins : <a href="http://www.pross.org.uk/plugins/" target="_blank">http://www.pross.org.uk/plugins/</a><br>



Themes: <a href="http://wordpress.org/extend/themes/profile/pross" target="_blank">http://wordpress.org/extend/themes/profile/pross</a><br>
</div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>