Store Page Template Files in a Subfolder

You can certainly use Page Templates for that. They’re a specific type of template file that can be applied to a specific page or groups of pages. Plus, they can be stored in sub folders.

All you need is to put something like this at the top of the template files:

/**
 * Template Name: Legal Page
 */

After that, you can choose the “Legal Page” template when editing a page in the admin.

Leave a Comment