[wp-trac] [WordPress Trac] #41362: Make locate_template() filterable to change the template locations
WordPress Trac
noreply at wordpress.org
Wed Jul 19 06:47:48 UTC 2017
#41362: Make locate_template() filterable to change the template locations
----------------------------+------------------------------
Reporter: kylejennings83 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.8
Severity: normal | Resolution:
Keywords: | Focuses: template
----------------------------+------------------------------
Comment (by dingo_bastard):
Did you read the documentation? Especially this part:
[https://developer.wordpress.org/themes/template-files-section/page-
template-files/#file-organization-of-page-templates File organization of
page templates]
> As discussed in Theme Files Organization WordPress recognizes the
subfolder page-templates. Therefore, it’s a good idea to store your global
page templates in this folder to help keep them organized.
Also I recommend this article from Tom McFarlin [https://tommcfarlin.com
/wordpress-and-mvc/ WordPress and MVC].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41362#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list