How can I add/place templates inside directories for better organization?

I’ve got a setup that requires a lot of those page-{name}.php templates and it would be nice to be able to place these in a subdirectory. However, I can’t find a way to do this and older posts seem to have outdated info.

Thanks.

I’ve tried some different approaches here, but I can’t seem to get WP to see the subdirectories.

Hey trainbolt, your question isn’t Sage specific, so it’s probably off topic for this board, but have a look at the codex entry on Page Templates, specifically the alert in this section concerning Specialized Page Templates.

…Alert: A specialized page template file (those created for only one time use) cannot be in a sub-folder …

Hope this helps.

1 Like

There’s a discussion going on about this over on the github!

1 Like