[wp-hackers] Custom Templates in sub-folder

Matt Martz matt at sivel.net
Mon Sep 14 17:31:02 UTC 2009


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/


More information about the wp-hackers mailing list