[wp-trac] [WordPress Trac] #18859: Single theme template for custom post by slug

WordPress Trac noreply at wordpress.org
Sat Oct 3 14:59:48 UTC 2015


#18859: Single theme template for custom post by slug
------------------------------+-----------------------------
 Reporter:  ericjuden         |       Owner:  SergeyBiryukov
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  4.4
Component:  Themes            |     Version:  3.3
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  template
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:   => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34800"]:
 {{{
 #!CommitTicketReference repository="" revision="34800"
 Add `single-{post_type}-{post_name}.php` to the top of the template
 hierarchy for single posts.

 This is consistent with page and taxonomy templates, which support slugs
 as well.

 Props ericjuden, johnbillion.
 Fixes #18859.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18859#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list