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

@@ -9,8 +9,9 @@ function sportspress_position_term_init() {
'label' => $name,
'labels' => $labels,
'public' => true,
'has_archive' => false,
'hierarchical' => true,
'rewrite' => array( 'slug' => 'position' )
'rewrite' => array( 'slug' => 'position' ),
);
register_taxonomy( 'sp_position', $object_type, $args );
register_taxonomy_for_object_type( 'sp_position', 'sp_player' );