Remove taxonomy archives

This commit is contained in:
Brian Miyaji
2014-01-22 21:02:49 +11:00
parent d7509b8614
commit 4f24611dbd
4 changed files with 10 additions and 6 deletions

View File

@@ -3,14 +3,15 @@ function sportspress_league_term_init() {
$name = __( 'Leagues', 'sportspress' );
$singular_name = __( 'League', 'sportspress' );
$lowercase_name = __( 'league', 'sportspress' );
$object_type = array( 'sp_calendar', 'sp_team', 'sp_player', 'sp_staff' );
$object_type = array( 'sp_event', 'sp_calendar', 'sp_team', 'sp_table', 'sp_player', 'sp_list', 'sp_staff' );
$labels = sportspress_get_term_labels( $name, $singular_name, $lowercase_name );
$args = array(
'label' => $name,
'labels' => $labels,
'public' => true,
'has_archive' => false,
'hierarchical' => true,
'rewrite' => array( 'slug' => 'league' )
'rewrite' => array( 'slug' => 'league' ),
);
register_taxonomy( 'sp_league', $object_type, $args );
register_taxonomy_for_object_type( 'sp_league', 'sp_calendar' );