[wp-trac] [WordPress Trac] #15086: get_template_part() should let you specify a directory

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 18 22:37:14 UTC 2012


#15086: get_template_part() should let you specify a directory
-------------------------------------------------+-------------------------
 Reporter:  aaroncampbell                        |       Owner:  westi
     Type:  enhancement                          |      Status:  accepted
 Priority:  normal                               |   Milestone:  Future
Component:  Themes                               |  Release
 Severity:  normal                               |     Version:  3.0
 Keywords:  has-patch westi-likes needs-unit-    |  Resolution:
  tests 2nd-opinion                              |
-------------------------------------------------+-------------------------
Changes (by sethmatics):

 * cc: sethmatics (added)


Comment:

 I was looking for this feature today, really hoping to take some of the
 themes that use include file and large file libraries and convert them to
 use get_template_part(). At first I thought I would use the hack of
 putting the slash into the first parameter, but after reading this, if we
 follow scribu's last comment it would definitely break my themes if that
 implementation is the answer and I used the subfolder hack that was
 originally posted to the codex. Do you guys have any idea which direction
 your going to take this?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15086#comment:50>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list