[wp-trac] [WordPress Trac] #13674: custom post type showing add new post instead of custom post type label

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 4 23:04:24 UTC 2010


#13674: custom post type showing add new post instead of custom post type label
-------------------------------+--------------------------------------------
 Reporter:  yalamber           |        Owner:          
     Type:  defect (bug)       |       Status:  reopened
 Priority:  normal             |    Milestone:          
Component:  Post Types         |      Version:  3.0.1   
 Severity:  normal             |   Resolution:          
 Keywords:  custom post types  |  
-------------------------------+--------------------------------------------
Changes (by kingjeffrey):

  * status:  closed => reopened
  * version:  3.0 => 3.0.1
  * resolution:  worksforme =>


Comment:

 I encountered this same issue, and was able to resolve it by explicitly
 setting it explicitly as follows:

                 'labels'        => array(
                                                 'name'                  =>
 'Movies',
                                                 'singular_name'         =>
 'Movie',
                                                 'add_new_item'  => 'Add
 New Movie',
                                         ),

 But the 'add_new_item' setting should be automatically determined from
 'singular_name' (which it is not).

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


More information about the wp-trac mailing list