[wp-trac] [WordPress Trac] #12105: Add support to get_single_template() for custom content types

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 8 22:10:32 UTC 2010


#12105: Add support to get_single_template() for custom content types
-------------------------+--------------------------------------------------
 Reporter:  ptahdunbar   |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.0
Component:  Template     |     Version:  3.0
 Severity:  normal       |    Keywords:     
-------------------------+--------------------------------------------------

Comment(by ryan):

 [13032]

 That changeset looks for single-$post_type.php and then single.php.
 single-thing sounds better than singular-thing to me.  If we look for slug
 and id templates, we should do so only for hierarchical post types.
 Hierarchical custom post types need a little more work.

 We also need to consider how plugins can add customized output for their
 custom post types without requiring template changes. Maybe using existing
 hooks into the_content will suffice.

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


More information about the wp-trac mailing list