<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    I wrote an extensive post that covers this:<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>
    Your code would actually look like this (no slash in front of
    "lib"):<br>
    <br>
    &lt;?php locate_template( array( 'lib/my_codes.php' ), true ); ?&gt;<br>
    <br>
    On 4/22/2011 12:01 PM, Towfiq I. wrote:
    <blockquote
      cite="mid:BANLkTimcuqCfrpr16b1EQRyQ0iEJ142vxw@mail.gmail.com"
      type="cite"><br>
      <br>
      So if we want to load a file from a sub-directory(for example
      "mytheme/lib/my_codes.php") we can use this:<br>
      <br>
      <div>&lt;?php locate_template( array( '/lib/my_codes.php' ), 1);
        ?&gt;<br>
        <br>
        IF it&nbsp; works and if it is advised, then I gotta say it will be a
        huge relief. I always wondered how to load files that are
        located in sub-directory of the theme folder. Didn't know it can
        be done with get_template_part() hook since it is not mentioned
        in <a moz-do-not-send="true"
          href="http://codex.wordpress.org/Function_Reference/get_template_part">http://codex.wordpress.org/Function_Reference/get_template_part</a><br>
      </div>
      <br>
      Thanks.<br clear="all">
      <br>
      -- <br>
      <span style="color: rgb(153, 153, 153);">Towfiq I.</span><br>
      <br>
      <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>