Template Directory Help
-
I was reading the the 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.phpWe 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
- The topic ‘Template Directory Help’ is closed to new replies.