<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
This should explain it:<br>
<a class="moz-txt-link-freetext" href="http://justintadlock.com/archives/2010/11/17/how-to-load-files-within-wordpress-themes">http://justintadlock.com/archives/2010/11/17/how-to-load-files-within-wordpress-themes</a><br>
<br>
On 7/26/2011 12:33 AM, Qamar Ashraf wrote:
<blockquote
cite="mid:CANYUyLcCkV8sQjoQzwx+Z9h1X6+84TGzw1e7bhxO6cWSQMXTDA@mail.gmail.com"
type="cite">Thanks Vicky,
<div>You have a point. so i think, there are two points now.</div>
<div>
<ul>
<li>locate_template() is for the inclusion of template files.
only ?</li>
<li>require or include is better for functions or other logics
?</li>
</ul>
<div>Let's see for the other views</div>
<br>
<div class="gmail_quote">On Tue, Jul 26, 2011 at 10:22 AM, Emil
Uzelac <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:emil@themeid.com">emil@themeid.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<font color="#333333"><font size="2"><font
face="arial,helvetica,sans-serif">I will let Otto or
someone else more knowledgeable to answer</font></font></font><font
color="#333333"><font size="2"><font
face="arial,helvetica,sans-serif"> this question
@Vicky. I am not 100% sure.<br clear="all">
</font></font></font>
<div>
<div class="im">
<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: <a
moz-do-not-send="true" href="tel:224-444-0006"
value="+12244440006" target="_blank">224-444-0006</a>
| Twitter: @EmilUzelac | E: <a
moz-do-not-send="true"
href="mailto:emil@themeid.com" target="_blank">emil@themeid.com</a>
| <a moz-do-not-send="true"
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>
<div class="gmail_quote">
<div>
<div class="h5">On Tue, Jul 26, 2011 at 12:19 AM,
Vicky Arulsingam <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:vicky.arulsingam@gmail.com"
target="_blank">vicky.arulsingam@gmail.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt
0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div>
<div class="h5">
<br>
<br>
<div class="gmail_quote">
<div>On Tue, Jul 26, 2011 at 1:17 PM, Emil
Uzelac <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:emil@themeid.com"
target="_blank">emil@themeid.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:
0pt 0pt 0pt 0.8ex; border-left: 1px solid
rgb(204, 204, 204); padding-left: 1ex;">
<div>
<div><span style="border-collapse:
collapse; font-size: 13px;">
<div>
<div>
<div><font color="#333333"
face="arial, helvetica,
sans-serif"><br>
</font></div>
<div style="font-family:
arial,sans-serif;">
<b>require_once / include_once
vs locate_template( array(
'file.php' ), true, false );</b></div>
</div>
</div>
</span><font face="arial, sans-serif"><span
style="border-collapse: collapse;">Hopefully </span></font><span
style="border-collapse: collapse;
font-family: arial,sans-serif;
font-size: 13px;">Otto will not mind.
This is what I've learned from him: </span></div>
<div><span style="border-collapse:
collapse; font-family:
arial,sans-serif; font-size: 13px;"><i>Instead
of doing require's, consider using
locate_template. This would allow
child themes to override anything
you're requiring.</i></span></div>
</div>
</blockquote>
<div><br>
</div>
</div>
<div>Does this also apply for php function files
- should they be included via locate_template?</div>
<div><br>
</div>
<div><br>
</div>
<div>-----</div>
</div>
<div>Vicky Arulsingam</div>
<font color="#888888"><br>
</font><br>
</div>
</div>
<div class="im">_______________________________________________<br>
theme-reviewers mailing list<br>
<a moz-do-not-send="true"
href="mailto:theme-reviewers@lists.wordpress.org"
target="_blank">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>
</div>
</blockquote>
</div>
<br>
</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>
<br clear="all">
<br>
-- <br>
<font color="#666666">Regards</font>
<div><font color="#666666">Qamar Ashraf</font></div>
<div><font color="#666666"><a moz-do-not-send="true"
href="http://www.tutorialchip.com" target="_blank">www.tutorialchip.com</a></font></div>
<div><font color="#666666">@lifeobject</font></div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>