Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#18567 closed enhancement (duplicate)

Modify get_template_part() to include sub folder path

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

Description

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 15 years ago.

Download all attachments as: .zip

Change History (2)

#1 @scribu
15 years ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed
Note: See TracTickets for help on using tickets.