How to move all theme templates into a subfolder WP

I’m looking for a wordpress function to move theme’s templates into a subfolder (mytheme/templates). Anyone know?

The solution can be paid (plugin) or free.

Related posts

Leave a Reply

1 comment

  1. Not easy to do. You can create redirect template and assign templates based on page ID

        <?php
        if (is_page('629')) { include(TEMPLATEPATH . '/pages/homepage.php');}
        elseif (is_page('186')) { include(TEMPLATEPATH . '/pages/generalpage.php');}
        else { include(TEMPLATEPATH . '/pages/defaultpage.php');
    } ?>
    

    See this for more details