Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#18567 closed enhancement (duplicate)

Modify get_template_part() to include sub folder path

Reported by: dgwyer Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: Themes Keywords: has-patch needs-testing
Focuses: Cc:


I have been using more and more template parts, that I include into my main theme template files, using get_template_part().

It would be great if it was possible to tidy up the theme root folder by placing all template parts in a sub folder.

I have attached a modified get_template_part() function with the proposed changes.

Attachments (1)

general-template.php.diff (1.3 KB) - added by dgwyer 10 years ago.

Download all attachments as: .zip

Change History (2)

#1 @scribu
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.