[wp-testers] template_directory ? childtheme_directory ?
scribu
scribu at gmail.com
Sat Jan 9 14:13:41 UTC 2010
On Sat, Jan 9, 2010 at 5:20 AM, John Asbacher <john.asbacher at gmail.com>wrote:
> What I'm trying to get across is...
>
> If you build a child theme and make a call with "template_directory" from
> within your child theme, I would expect that it would search the
> "child-theme" and if the file is not found there to then search in the
> "master-theme" directory.
>
> I might not even understand how child-themes really work. My assumption is
> that if you have a "child-theme" it will look there for the file and if it's
> not found to then look in the "master-theme" directory.
>
> Are there documents that explain this in detail?
You should be using the locate_template() function.
--
http://scribu.net
More information about the wp-testers
mailing list