Disable default custom post type archives

This commit is contained in:
Brian Miyaji
2014-06-13 18:59:34 +10:00
parent 3108fd93d9
commit 46a6d3b72f

View File

@@ -357,7 +357,7 @@ class SP_Post_types {
'hierarchical' => false,
'rewrite' => array( 'slug' => get_option( 'sportspress_event_slug', 'event' ) ),
'supports' => array( 'title', 'author', 'thumbnail', 'excerpt', 'comments' ),
'has_archive' => true,
'has_archive' => false,
'show_in_nav_menus' => true,
'menu_icon' => 'dashicons-calendar',
)
@@ -418,7 +418,7 @@ class SP_Post_types {
'hierarchical' => true,
'rewrite' => array( 'slug' => get_option( 'sportspress_team_slug', 'team' ) ),
'supports' => array( 'title', 'author', 'thumbnail', 'page-attributes', 'excerpt' ),
'has_archive' => true,
'has_archive' => false,
'show_in_nav_menus' => true,
'menu_icon' => 'dashicons-shield-alt',
)
@@ -479,7 +479,7 @@ class SP_Post_types {
'hierarchical' => false,
'rewrite' => array( 'slug' => get_option( 'sportspress_player_slug', 'player' ) ),
'supports' => array( 'title', 'author', 'thumbnail', 'excerpt', 'page-attributes' ),
'has_archive' => true,
'has_archive' => false,
'show_in_nav_menus' => true,
'menu_icon' => 'dashicons-groups',
)
@@ -540,7 +540,7 @@ class SP_Post_types {
'hierarchical' => false,
'rewrite' => array( 'slug' => get_option( 'sportspress_staff_slug', 'staff' ) ),
'supports' => array( 'title', 'author', 'thumbnail', 'excerpt' ),
'has_archive' => true,
'has_archive' => false,
'show_in_nav_menus' => true,
'show_in_menu' => 'edit.php?post_type=sp_player',
'show_in_admin_bar' => true,