That part is extremely rigid, see this question about loading page templates from plugin directory.
With current state of related code I would not bother spending time on this. Especially since you want it for convenience (putting template in sub-directories) and not functionality (like loading from plugin folder).
Related Posts:
- Opinions and recommendations on the best barebones base theme [closed]
- What is the role and history of the $content_width global variable?
- “Unexpected error” on update requests
- Dynamic template serving, change theme_root using add_filter from current theme
- How to override the “inc” folder (or any folder) in a theme using child theme?
- Is it possible to access Gutenbergs reusable blocks in CPT block templates?
- WordPress as Backend, Laravel Front End: How to connect Routes?
- Can I obtain differents links for different installed theme?
- WordPress ignoring specified template for front page. Why?
- Can I apply a WP theme to a specific custom page template?
- remove rel=next on home page but not others
- WordPress Fatal error: Call to undefined get_header() in index.php on line 15 [closed]
- Change Theme from Plugin based on query_vars
- How to add template to theme in WP
- How can I show more than 15 themes at a time in the admin menu?
- Added a new template file to a theme – get Call to undefined function error
- How to find a file in WordPress themes [closed]
- Display a specific dynamic sidebar widgets on a specific page
- Child theme Page Template not loading
- Creating new templates in child themes breaks layout
- Make it possible to pick a color theme for specific pages
- OptimizePress Theme Overriding add_filter page_template
- Get WordPress to use another custom “author.php” file (“custom-author-file.php”)
- Execute filter in theme as last
- Search form not finding content in template page
- display comment form for specific post id
- Selected template is not respected for home page in WordPress
- Putting two themes together to create a complete site
- Is there a way to upgrade a theme without losing custom templates?
- Need help with making a website where user can add products
- Advantages of wordpress theme vs wordpress as a backend only [closed]
- What’s a good way to unenqueue all scripts for a single template page?
- What Generated Classes and IDs That Is Always Used On All Themes?
- Most wp_nav_menu parameters ignored
- Using the same database on another Subdomain
- Trying to fix a website that was built with WordPress and then taken off of it
- Posts as filtered list – expandable
- A thin line between native wordpress bahaviour and 3rd party themes
- Create a Page template selector page
- Using filter in the widget causes fatal error
- Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?
- Create Custom Attachment Template That is Processed from Plugin Folder?
- Multiple sub directories for theme template pages
- How to remove the tripadvisor logo from the wordpress theme?
- Fix warning: Missing argument
- Please help me clear my confusions about WordPress
- WordPress 2022 template, how to see the blocks added in post template on post edit?
- Get the name WordPress default theme in the core
- Can I use non-wordpress themes in WordPress?
- WordPress keeps switching back to empty template
- Removing a widget via theme editor
- How do I bring a page template into a new theme with separate styling?
- 12 column grid layout
- Don’t prepend WordPress base url to image paths
- Theme Dev | Convert Template to Theme
- Are immediately-called actions not usable in themes?
- Firebug and Chrome rendering two body tags
- Revamping a WordPress mirror site – and I don’t know where to start!
- What is the template file for topic layouts in bbPress?
- Will this js code work in a page template?
- How to find out which template the HTML content comes from?
- Create a child Theme or custom Theme
- How to modify/ customise NextGen Gallery’s templates? [closed]
- wordpress template page Usage [duplicate]
- Overwrite template-tags.php in child theme
- What happens to bespoke page template references on theme change?
- How to add sidebar to homepage programmatically?
- Get header/footer list for a theme
- Homepage not loading correctly, only after refreshing
- How to clone a theme template from within WordPress? [closed]
- How do I change the header image height in Twenty Seventeen?
- How to create a new theme from scratch?
- How can I get wp_head() as a string instead of echoing it?
- Use a different template/theme if mobile only on home page
- Add a Second Menu to a theme that only support 1 menu
- How can I make some themes usable only by admins?
- 1 Database for multiple WordPress themes
- WordPress without a theme – help!
- can’t see aditional themes in control panel
- Configure new installed WordPress in live server
- What’s the default order used by WordPress to load CSS files?
- Where does WordPress get the theme name from to check for updates?
- How can I remove all traces of a theme?
- Updating WordPress Theme Files
- Display Pointer only once?
- From where wp ecommerce is loading plugin theme files?
- Making first post wider than other posts on home page(default)
- how to display a template.php in a shortcode
- How to use my .mo file in the Divi child theme instead of file in a parent /builder directory?
- TwentyFourteen Theme : Changing grid layout
- How to allow users to switch to the child theme from front end without plugin?
- Show posts from all categories
- How to remove the option data of a theme when that theme is removed?
- Convert theme to be based on Bootstrap?
- WP Customer Reviews call short code on another page [closed]
- Static posts page is not working
- Cannot use some themes within Managed WordPress of Go Daddy [closed]
- How to track your theme usage on the internet?
- How to add Company Logo to Chosen Theme
- Help with Divi logo not appearing for 10s