<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><?php locate_template( array( '/lib/my_codes.php' ), 1); ?><br><br>IF it 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 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>