[wp-hackers] Custom Templates in sub-folder

Sudar Muthu sudar at sudarmuthu.com
Mon Sep 14 17:35:10 UTC 2009


Yeah, if the inserted meta value is my-sub-dir/my-page-template.php then it
should solve the problem.

If anyone else, (apart from me) is able to replicate the issue, then I will
open a ticket.

With Regards,
Sudar

http://SudarMuthu.com
http://twitter.com/sudarmuthu


On Mon, Sep 14, 2009 at 23:01, Matt Martz <matt at sivel.net> wrote:

> On Mon, Sep 14, 2009 at 1:16 PM, Sudar Muthu <sudar at sudarmuthu.com> wrote:
> > This is surely a bug, but I am not sure where the fix should go. Placing
> > page-template files in a separate directory could be handy. In that case
> we
> > might have to modify locate_template() function.
>
> I would think that the meta value inserted in the database should be
> the path relative to the theme directory.
>
> So something like:  my-sub-dir/my-page-template.php
>
> --
> Matt Martz
> matt at sivel.net
> http://sivel.net/
> _______________________________________________
> 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