Organizing Template Files Into Folders
-
I am working on an extensive WordPress site at the moment that is going to require over 45 template files. So naturally I want to have some form of organization to keep the files on my server somewhat tame.
Here are is what I was trying to do, and what the outcome was:
I had a folder within my theme root called levelonetemplates. So in here I had about.php, contact.php, etc.
I created the pages and and applied the templates to the respected pages. However, I found that as I was editing the page templates, the actual displayed pages were not changing.After much troubleshooting, I finally found out that if a page template is in a folder within the theme root, it is recognized by the edit page area in the admin panel, but it does not load the template when the page is displayed. I took the template file and put it into the root directory of the theme, and my changes showed.
I want to be able to organize my template files into folders. Is anyone aware of how this can be done? The templates are already recognized, but they do not load when being displayed.
- The topic ‘Organizing Template Files Into Folders’ is closed to new replies.