[wp-trac] [WordPress Trac] #18958: Can't set "Show on screen" for Custom post types

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 18 00:58:41 UTC 2011


#18958: Can't set "Show on screen" for Custom post types
-------------------------------+------------------
 Reporter:  dd32               |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  3.3
Component:  Administration     |     Version:  3.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------

Comment (by dd32):

 Ok so.. I'm shamed to say: I was using a CPT plugin to add the post type.
 Below is the call it's using, It's probably caused by the dash in the CPT
 name, in core we underscores, I'd say it's messing with the splitting on
 dashes which I believe the screen options stuff uses.

 {{{
 register_post_type('test-cpt', array(
   'label' => 'Test CPT',
   'description' => '',
   'public' => true,
   'show_ui' => true,
   'show_in_menu' => true,
   'capability_type' => 'post',
   'hierarchical' => true,
   'rewrite' => true,
   'query_var' => true,
   'has_archive' => true,
   'supports' => array('title','editor','excerpt','custom-
 fields','comments','revisions','page-attributes')
 )
 );
 }}}

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


More information about the wp-trac mailing list