WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#14608 closed defect (bug) (invalid)

Custom Post Type Permalinks break when 'rewrite' argumnet is changed

Reported by: duck__boy Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.1
Component: Posts, Post Types Keywords: custom, post, type, permalink, broken, rewrite, post_type
Focuses: Cc:

Description

When adding a Custom Post Type all is initially fine with the Permalinks, but if you change the 'rewrite' argument at all then it stops the Permalinks for only that Custom Post Type from working.

Also, changing the $post_type parameter will cause the same brakage, again only for that Custom Post Type. Deleting .htaccess and letting Wordpress recreate it seems to fix the issue, but it breaks again if you make one of the mentioned changes.

Change History (1)

comment:1 @nacin5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

You need to either flush the rewrite rules via an activation hook or by visiting options-permalink.php.

Note: See TracTickets for help on using tickets.