[wp-hackers] Widget Weirdness - Doesn't like the file name widgets.php

Alex Andrews awgandrews at gmail.com
Tue Jun 28 09:51:16 UTC 2011

Roots uses get_template_part all over the shop - its a great example
of a very modern and very highly tweaked WordPress theme. For clarity
though I like to have my bits of actual code included and have bits of
templates using this.


On 28 June 2011 10:47, John Blackbourn <johnbillion+wp at gmail.com> wrote:
> On 28 June 2011 10:06, Alex Andrews <awgandrews at gmail.com> wrote:
>> Thanks for all this folks, learnt my lesson and may also submit a
>> patch to the Roots theme on this account.
> Another neat way to load files from within a theme is to use
> WordPress' get_template_part( 'includes/widgets') instead of a regular
> include() or require(). This allows a child theme to override these
> files in the same way core template files are overridden if they're
> present. Might be worth suggesting to the theme author.
> John
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list