[theme-reviewers] get_template_part()

Justin Tadlock justin at justintadlock.com
Fri Jun 8 16:02:51 UTC 2012


Here's one:

locate_template( array( 'example/example-x.php', 'example/example.php' 
), true );

I've also dedicated an entire tutorial to appropriately loading files 
and templates in themes:
http://justintadlock.com/archives/2010/11/17/how-to-load-files-within-wordpress-themes

On 6/8/2012 10:48 AM, George Mamadashvili wrote:
> Justin any examples with locate_template() and sub-directories?
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20120608/cb0e3741/attachment.htm>


More information about the theme-reviewers mailing list