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.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI'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.
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