[wp-hackers] Page templates in subdirectories

Dan Phiffer dan at phiffer.org
Fri Feb 19 15:41:08 UTC 2010


Ah, seems that I was missing something after all...

Thanks Andrew!

-Dan


On Feb 19, 2010, at 9:57 AM, Andrew Nacin wrote:

> That check was added in 2.9 because while we showed page templates that were
> in subdirectories, they were never functional. See
> http://core.trac.wordpress.org/ticket/10959.
> 
> On Fri, Feb 19, 2010 at 9:49 AM, Dan Phiffer <dan at phiffer.org> wrote:
> 
>> I'm writing a theme that includes custom page templates that I'd like to
>> keep in subdirectories. There's some code that explicitly removes this
>> ability (
>> https://core.trac.wordpress.org/browser/trunk/wp-admin/includes/theme.php#L177)
>> and I'm curious why it's there.
>> 
>> There don't seem to be any filters that I could use to circumvent this, so
>> without modifying core I seem to be limited to the top-level theme
>> directory. This seems unnecessarily restrictive, but maybe I'm missing
>> something?
>> 
> _______________________________________________
> 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