[wp-trac] [WordPress Trac] #19063: Custom post_types and get_template_part

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 26 18:54:12 UTC 2011


#19063: Custom post_types and get_template_part
-------------------------+-----------------------------
 Reporter:  impleri      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Template     |    Version:
 Severity:  minor        |   Keywords:  has-patch
-------------------------+-----------------------------
 Can we modify the get_template_part process to allow custom post_type and
 custom taxonomy from plugins? I'm pretty sure I'm not the only person who
 uses custom post_types and would like to see an easier way to add a
 default template file without encroaching upon existing theme files,
 adding child themes, or requiring themes which are explicitly compatible
 with the particular post_type.

 I've included a patch which is based on my current approach in using the
 archive_template, single_template, etc filter.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19063>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list