[wp-trac] [WordPress Trac] #41773: Page Templates // Post Type Templates | Any Post Type?

WordPress Trac noreply at wordpress.org
Fri Sep 1 00:39:05 UTC 2017


#41773: Page Templates // Post Type Templates | Any Post Type?
------------------------------------------+-----------------------------
 Reporter:  michael.ecklund               |      Owner:
     Type:  enhancement                   |     Status:  new
 Priority:  normal                        |  Milestone:  Awaiting Review
Component:  Posts, Post Types             |    Version:  4.8.1
 Severity:  normal                        |   Keywords:
  Focuses:  ui, administration, template  |
------------------------------------------+-----------------------------
 If I add a template like this:

 {{{#!php
 <?php
 /*
 Template Name: Full-width layout
 */
 }}}

 It seems to only be visible on the `page` Post Type in the meta box drop
 down.

 If I add a template like this:

 {{{#!php
 <?php
 /*
 Template Name: Full-width layout
 Template Post Type: post, page, artist, album, track
 */
 }}}

 It's available in the meta box drop down for the specified Post Types.

 I would like to add a template and have it available to all Post Types.

 Perhaps add like this:

 {{{#!php
 <?php
 /*
 Template Name: Full-width layout
 Template Post Type: any
 */

 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41773>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list