locate_template restricts the use of get_template_part
|Reported by:||w3prodigy||Owned by:|
The locate_template functions utilizes require_once to include files. With get_generic_template providing the ability to simply include template files we should make it more flexible so users can include the same file twice from one template file.
For example if I wanted to create a custom template for a parent page with children and display the content from the children on the parent page I would use get_generic_template('loop','page') for the loop for the parent page, followed by another get_generic_template('loop','page') for each child page.
I suggest we replace the require_once function of locate_template with a require function to increase the administrators accessibility to template files.
Change History (6)
- Summary changed from locate_template restricts the use of get_generic_template to locate_template restricts the use of get_template_part
- Keywords reporter-feedback removed
- Milestone changed from Unassigned to 3.0
- Type changed from feature request to enhancement