Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Team-Kategorie

// Register Custom Taxonomy
function team_category_taxonomy() {

	$labels = array(
		'name'                       => 'Team-Kategorien',
		'singular_name'              => 'Team-Kategorie',
		'menu_name'                  => 'Kategorien',
		'all_items'                  => 'Alle Team-Kategorien',
		'parent_item'                => 'Eltern-Kategorie',
		'parent_item_colon'          => 'Eltern-Kategorie:',
		'new_item_name'              => 'Neue Team-Kategorie',
		'add_new_item'               => 'Team-Kategorie hinzufügen',
		'edit_item'                  => 'Kategorie ändern',
		'update_item'                => 'Kategorie aktualisieren',
		'view_item'                  => 'View Item',
		'separate_items_with_commas' => 'Separate with commas',
		'add_or_remove_items'        => 'Add or remove Category',
		'choose_from_most_used'      => 'Choose from the most used Category',
		'popular_items'              => 'Popular Items',
		'search_items'               => 'Team-Kategorie durchsuchen',
		'not_found'                  => 'Not Found',
		'no_terms'                   => 'No items',
		'items_list'                 => 'Items list',
		'items_list_navigation'      => 'Items list navigation',
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'team_kategorie', array( 'teams' ), $args );

}
add_action( 'init', 'team_category_taxonomy', 0 );