<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Technically, get_template_part() was not meant to be used to get
files in sub-directories. This was an oversight when the function
was originally written. Fixing it in core would bring up backward
compatibility concerns because theme authors decided to start using
it incorrectly.<br>
<br>
A more appropriate function for getting templates files in
sub-directories would be locate_template().<br>
<br>
On 6/8/2012 7:57 AM, Chip Bennett wrote:
<blockquote
cite="mid:CAPdLKqeQ-JaFgWkviczrUEdscsbo1gzp2c5KLNMMxbzohdzOAQ@mail.gmail.com"
type="cite">Note:
<div><br>
</div>
<div>get_template_part() should be used for *template* - i.e.
*front-end* - files. It is perfectly acceptable (and correct) to
use include()/require() for *functional* files to be included
within functions.php. There may still be cases where
get_template_part() is insufficient, in which case
locate_template() should be used directly.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Chip<br>
<br>
<div class="gmail_quote">On Fri, Jun 8, 2012 at 6:52 AM, Central
Victorian Irish Association <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:info@cvia.com.au"
target="_blank">info@cvia.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="font-size:12pt;font-family:'Calibri'">
<div>Hello My Darlings. <img
style="BORDER-BOTTOM-STYLE:none;BORDER-LEFT-STYLE:none;BORDER-TOP-STYLE:none;BORDER-RIGHT-STYLE:none"
alt="Smile with tongue out"
src="cid:part2.04020701.06040801@justintadlock.com"></div>
<div> </div>
<div>I have a guy questioning the <font face="Times
New Roman">get_template_part() call on internal
files. He claims basically that it is not required
because it doesn’t support directories. So, he
wants to be an exception. I am saying
No-Can-Be-Doneskies but wanna get some experienced
feedback before I tell him to behave.</font></div>
<div><a moz-do-not-send="true"
title="http://themes.trac.wordpress.org/ticket/7896"
href="http://themes.trac.wordpress.org/ticket/7896" target="_blank">http://themes.trac.wordpress.org/ticket/7896</a></div>
<div> </div>
<div><font face="Times New Roman">Thanks,</font></div>
<div><font face="Times New Roman">Dan</font></div>
<div> </div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a moz-do-not-send="true"
href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a moz-do-not-send="true"
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>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
theme-reviewers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a>
<a class="moz-txt-link-freetext" href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
</blockquote>
</body>
</html>