[wp-trac] [WordPress Trac] #41742: New conditional tag to decide if a post has a custom template

WordPress Trac noreply at wordpress.org
Mon Aug 28 10:44:05 UTC 2017


#41742: New conditional tag to decide if a post has a custom template
-------------------------+-----------------------
 Reporter:  danburzo     |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Themes       |     Version:  trunk
 Severity:  normal       |  Resolution:  invalid
 Keywords:               |     Focuses:  template
-------------------------+-----------------------
Changes (by SergeyBiryukov):

 * type:  feature request => enhancement
 * milestone:  Awaiting Review =>


Comment:

 Was the closing intentional?

 There are, however,
 [https://developer.wordpress.org/reference/functions/is_page_template/
 is_page_template()] and
 [https://developer.wordpress.org/reference/functions/get_page_template_slug/
 get_page_template_slug()] functions that should cover this.

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


More information about the wp-trac mailing list