[wp-trac] [WordPress Trac] #12759: "Template" shouldn't show for custom hierarchical post types

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 29 10:43:33 UTC 2010


#12759: "Template" shouldn't show for custom hierarchical post types
--------------------------+-------------------------------------------------
 Reporter:  greenshady    |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  Post Types    |     Version:  3.0
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
 When creating a custom post type that is hierarchical, the post type would
 likely support the `page-attributes` meta box because this grants access
 to the parent drop-down.

 While I can certainly see the benefit in having the ability to create
 custom templates, my "page" templates shouldn't appear for other post
 types.  These templates were created for use specifically with the page
 post type.

 I see four solutions for fixing this issue:

 1) Remove this when the post type isn't a page.

 2) Allow for specific post type templates to be recognized in the form of:

 {{{
 $post_type->singular_label Template: Example
 }}}

 3) Create a separate meta box that simply handles the parent so the `page-
 attributes` meta box isn't needed.

 4) Add a hook so developers can remove this.

 Note that the page template drop-down is also shown with the quick edit
 feature.

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


More information about the wp-trac mailing list