Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Grupper

// Register Custom Taxonomy
function custom_taxonomy_grupper() {

	$labels = array(
		'name'                       => _x( 'Grupper', 'Taxonomy General Name', 'rbw' ),
		'singular_name'              => _x( 'Grupp', 'Taxonomy Singular Name', 'rbw' ),
		'menu_name'                  => __( 'Grupper', 'rbw' ),
		'all_items'                  => __( 'Alla grupper', 'rbw' ),
		'parent_item'                => __( 'Parent Item', 'rbw' ),
		'parent_item_colon'          => __( 'Parent Item:', 'rbw' ),
		'new_item_name'              => __( 'Ny grupp', 'rbw' ),
		'add_new_item'               => __( 'Lägg till ny grupp', 'rbw' ),
		'edit_item'                  => __( 'Redigera grupp', 'rbw' ),
		'update_item'                => __( 'Uppdatera grupp', 'rbw' ),
		'view_item'                  => __( 'Visa grupp', 'rbw' ),
		'separate_items_with_commas' => __( 'Separate items with commas', 'rbw' ),
		'add_or_remove_items'        => __( 'Add or remove items', 'rbw' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'rbw' ),
		'popular_items'              => __( 'Popular Items', 'rbw' ),
		'search_items'               => __( 'Search Items', 'rbw' ),
		'not_found'                  => __( 'Not Found', 'rbw' ),
		'no_terms'                   => __( 'No items', 'rbw' ),
		'items_list'                 => __( 'Items list', 'rbw' ),
		'items_list_navigation'      => __( 'Items list navigation', 'rbw' ),
	);
	$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( 'grupp', array( 'lag' ), $args );

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