Thanks Justin,<div>It has helped me a lot.<br><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 10:41 AM, Justin Tadlock <span dir="ltr"><<a href="mailto:justin@justintadlock.com">justin@justintadlock.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><u></u>
<div text="#000000" bgcolor="#ffffff">
This should explain it:<br>
<a href="http://justintadlock.com/archives/2010/11/17/how-to-load-files-within-wordpress-themes" target="_blank">http://justintadlock.com/archives/2010/11/17/how-to-load-files-within-wordpress-themes</a><div><div></div><div class="h5">
<br>
<br>
On 7/26/2011 12:33 AM, Qamar Ashraf wrote:
<blockquote 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 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">
<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>
<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 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>
<div class="gmail_quote">
<div>
<div>On Tue, Jul 26, 2011 at 12:19 AM,
Vicky Arulsingam <span dir="ltr"><<a 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>
<br>
<br>
<div class="gmail_quote">
<div>On Tue, Jul 26, 2011 at 1:17 PM, Emil
Uzelac <span dir="ltr"><<a 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>_______________________________________________<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>
</div>
</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>
<br clear="all">
<br>
-- <br>
<font color="#666666">Regards</font>
<div><font color="#666666">Qamar Ashraf</font></div>
<div><font color="#666666"><a href="http://www.tutorialchip.com" target="_blank">www.tutorialchip.com</a></font></div>
<div><font color="#666666">@lifeobject</font></div>
<br>
</div>
<pre><fieldset></fieldset>
_______________________________________________
theme-reviewers mailing list
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
</blockquote>
</div></div></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><br clear="all"><br>-- <br><font color="#666666">Regards</font><div><font color="#666666">Qamar Ashraf</font></div><div><font color="#666666"><a href="http://www.tutorialchip.com" target="_blank">www.tutorialchip.com</a></font></div>
<div><font color="#666666">@lifeobject1</font></div><br>
</div>