Custom post type empty slug breaks permalinks for pages
|Reported by:||firebird75||Owned by:|
If I register a custom post type using the register_post_type function and I pass the following parameter :
rewrite => array('slug' => )
If the blog permalink structure is set to /%postname%/, then it breaks the rewriting rules for pages (post of type page). They return a 404 error when you try to open it. You need to save at least one page after having registered the custom post type to see the issue.
Setting the custom post type slug to the value is made to have custom post type permalink structure match the blog permalink structure (ie only /%postname%/ in the url).
Change History (14)
comment:10 follow-up: ↓ 12 nacin — 3 years ago
- Resolution set to fixed
- Status changed from new to closed
comment:12 in reply to: ↑ 10 ciantic — 2 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
- Version changed from 3.0.1 to 3.3.1