Title: Template Directory Help
Last modified: August 19, 2016

---

# Template Directory Help

 *  [wp–fan](https://wordpress.org/support/users/wp-fan-1/)
 * (@wp-fan-1)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/templaye-directory-help/)
 * I was reading the the [Template Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
   and saw page templates are like so:
 * – custom template – Where custom template is the Page Template assigned to the
   Page.
    – page-{slug}.php – If the page slug is recent-news, WordPress will look
   to use page-recent-news.php – page-{id}.php – If the page ID is 6, WordPress 
   will look to use page-6.php
 * We all know that page.php is in the wp-content/themes/THEMENAME folder with THEMENAME
   being the theme you are using.
 * **My question is how can I put extra pages that I make into a separate folder
   so that WordPress can find them? so something like page-44.php is in wp-content/
   themes/THEMENAME/NEWFOLDER** Same thing with single posts, tags and categories.
 * i want to do this because my theme directory gets cluttered with all of the extra
   pages I have created.
 * Help would be much appreciated in this manner.
 * Thank you
    WP–Fan

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/templaye-directory-help/#post-1683399)
 * WordPress doesn’t use folders, so as far as I am aware, you can’t apply a custom
   page template that is placed in a theme sub-folder.
 *  Thread Starter [wp–fan](https://wordpress.org/support/users/wp-fan-1/)
 * (@wp-fan-1)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/templaye-directory-help/#post-1683426)
 * Thanks for the reply esmi.
 * Is there any file I can change so that WordPress can let me apply a custom page
   template? I’m sure there is some file in WordPress that says look for “single.
   php” or “page.php” in X folder. maybe if i can just change that file to point
   differently it can be done. I just don’t know where and what to look for!
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/templaye-directory-help/#post-1683501)
 * > Is there any file I can change so that WordPress can let me apply a custom 
   > page template?
 * Follow this guide:
 * [http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates](http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates)
 *  Thread Starter [wp–fan](https://wordpress.org/support/users/wp-fan-1/)
 * (@wp-fan-1)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/templaye-directory-help/#post-1683504)
 * I mean any file that I can change so WordPress can let me apply a custom template
   in a different directory then my theme’s directory.
 * so instead of putting page-44.php in wp-content/themes/THEMENAME/ i want to put
   it in wp-content/themes/THEMENAME/NEWFOLDER
 * thank you

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Template Directory Help’ is closed to new replies.

 * 4 replies
 * 3 participants
 * Last reply from: [wp–fan](https://wordpress.org/support/users/wp-fan-1/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/templaye-directory-help/#post-1683504)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
