Opened 12 years ago
Closed 10 years ago
#25838 closed defect (bug) (invalid)
Viewing single posts of CPT 'author' result in 404 after upgrade
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.7.1 |
| Component: | Posts, Post Types | Keywords: | |
| Focuses: | Cc: |
Description
Everything works fine in a clean install of 3.6.1 with this in functions.php:
add_action( 'init', 'create_custom_post_types' );
function create_custom_post_types() {
$args = array(
'public' => true,
'label' => 'Authors'
);
register_post_type( 'author', $args );
}
But after upgrading to 3.7.1 you can no longer go to a single page without getting a 404 error. This happens with or without permalinks enabled.
Someone else has had the same problem here:
http://stackoverflow.com/questions/19583960/404-errors-after-update-to-wordpress-3-7
This has affected 2 of my large live sites so hope it can be fixed soon. Thanks!
Change History (4)
Note: See
TracTickets for help on using
tickets.
Maybe related: #25798