Custom post type 'name' is slug instead of plural label
|Reported by:||thomask||Owned by:|
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.
Change History (4)
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed