Page templates are special case and since WP 3.4 can be put in subfolder natively. Other than that WP mostly expects flat file structure for templates.
While template hierarchy is easily adjusted (see dynamic filter in get_query_template()
, pretty much only thing needed)… From personal experience – overly extensive and nested directory structure for templates makes developer workflow overly unpleasant very fast.
If you have extreme quantity of templates “how to reduce amount?” is better question than “how to stuff them into folders?”.
Related Posts:
- Templates & CSS – Proper Programming Practice?
- index.php template is used instead of blog page
- How to apply a custom template for posts by default?
- How to move style from template file to section?
- Unable to include a template
- Is there a way to set different post templates for parent posts and child posts in the same post type?
- Single-page.php template file name not shown
- How to display custom post type?
- Display a custom 404 page without a redirect
- How can I make custom page templates work on child theme?
- When to use content-pagename.php?
- Page Templates Used in Custom Post Type
- Is there any way to use get_template_part() with folders?
- Is it possible to override the result of get_template_part()?
- Page editor missing Templates drop down
- How to edit contents of dynamic_sidebar()?
- Is it possible to manipulate the list of page templates?
- Loading partial templates with AJAX/PJAX
- I put my blog on a subpage, how do I get page title?
- Get template part vs locate template function
- How to hide/redirect the author page
- page_template toggle between 2 templates + 2 permalinks for same post
- Create Page that uses specific template
- Accessing $post variable from template part
- Hide Front-End Admin Bar Including 32 px Spacing
- Passing variables to template parts
- Adding variable to get_template_part
- Subpage template
- Advanced Custom Fields – display when specific template used?
- What should I put on my index.php?
- For custom templates, is it better to use `template_include` or `type_template`?
- When a link doesn’t exist, how to tell WordPress what to do? (404 Error Page)
- Is there any way to get all the name or slug of template parts used in a page?
- Where is the template for the ‘standard’ format of a post in the theme twentythirteen?
- Valid HTML in Template Part
- How do I find the directory of a page template?
- Missing ‘Page Attributes’
- how to use custom page template in a page?
- the_excerpt producing empty output
- how could I load a different template part by page
- Conditionally display different images before the content in a page template
- How to remove the Template drop down, but keep Parent and Order
- One of my pages uses the archive.php template only. Why?
- Get link to a specific template file [closed]
- Default Template Selected After Changes in Elementor [closed]
- Having trouble with Template hierarchy. I Need to create a set of pages that drill down from states to specific locations
- displaying category and subject posts
- How to duplicate a page template but make minor changes to the header?
- Adding Query to Custom Page Template
- All top-level pages are using index.php as template
- Custom templates vs page-slug
- get_file_data to read data for Custom Template File?
- Page attributes missing
- Selected template is not respected for home page in WordPress
- Understanding the Template hierarchy
- How does WordPress choose archive type template?
- wp_enqueue_style and different styles for blog template
- Use one template only for custom post type archives?
- How do I get the page template name chosen?
- How can I add text to a specific ‘Edit Page’?
- get_header(), get_footer() from plugin template
- What template is used for viewing Media Library Files?
- get_month_link uses what wordpress template?
- Page template for a site from network
- Remove portion of header code from home page only
- Use a separate template for the home page only
- Differentiation between index.php and page.php
- Undefined get_header function
- How to create new template page and template-parts in wordpress theme [closed]
- Hard Coding Components on a Client Specific Websites
- Assigning custom page templates to a static blog page
- Will placing custom templates in sub directory break any native WordPress functionality
- Including template pages within another template?
- Archive-custome_post.php template not working
- Blog page won’t show Blog template
- Help Understanding Template Hierarchy
- templates with page teasers Or Featured Items
- odd behaviours from template tags
- How to get all template files used for rendering a single post/page?
- Random home page at each refresh between array of page IDs
- How do I get tags linking to proper pages (/tag/sample-tag -> pages with that tag)
- get_template_part for template in subdirectory not working
- small problem in the article ()
- Assign template to custom page type?
- Search button click sends to single-custom_post_type instead staying at the same page
- BuddyPress : how can I call the template WordPress would have chosen (template hierarchy)?
- Change Page Template Based on URL Rewrite in WordPress
- How can I show contents of a template part inside of another page?
- Which template(s) to override to use a different sidebar for blog, single posts, categories, blog archive?
- Creating custom post-listing templates in twentyseventeen child theme
- Single Post Templates Doubt
- Custom Homepage As Single Page or Custom Post Type?
- Submit form to another template (ugly url)
- Show a custom template, no matter the page being viewed, if the user is not logged in
- Is this the best way to complete disable category archive pages?
- Is it possible to call a template file inside wysiwyg editor? And how?
- Passing query variables to a custom page template
- Is there a way to share a template/markup with the JSON API so that it doesn’t need to be declared both in PHP and in JS?
- How to install a wordpress website template on an existing website?
- Custom Archive with Content for Custom Post Type