[wp-trac] [WordPress Trac] #20678: Custom post type 'name' is slug instead of plural label

WordPress Trac wp-trac at lists.automattic.com
Mon May 14 19:52:54 UTC 2012


#20678: Custom post type 'name' is slug instead of plural label
--------------------------+-----------------------------
 Reporter:  thomask       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.4
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 If you look into get_queried_object() object on build-in archive pages,
 the object->name contanins plural label of that categoriy, e.g. 'My news'.

 If you do the same on CPT, it contains slug, e.g. "my-news"

 The same is returned when you do post_type_archive_title() - so slug for
 CPT, Plural name for categories.

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


More information about the wp-trac mailing list