From 46a6d3b72fca2179bbd3036450171134b161d7c0 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Fri, 13 Jun 2014 18:59:34 +1000 Subject: [PATCH] Disable default custom post type archives --- includes/class-sp-post-types.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/class-sp-post-types.php b/includes/class-sp-post-types.php index 7a15d917..a44b8fce 100644 --- a/includes/class-sp-post-types.php +++ b/includes/class-sp-post-types.php @@ -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,