Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Sector

// Register Custom Taxonomy
function paolo_sectors() {

	$labels = array(
		'name'                       => _x( 'Sectors', 'Taxonomy General Name', 'paolo' ),
		'singular_name'              => _x( 'Sector', 'Taxonomy Singular Name', 'paolo' ),
		'menu_name'                  => __( 'Sectors', 'paolo' ),
		'all_items'                  => __( 'All Sectors', 'paolo' ),
		'parent_item'                => __( 'Parent Sector', 'paolo' ),
		'parent_item_colon'          => __( 'Parent Sector:', 'paolo' ),
		'new_item_name'              => __( 'New Sector', 'paolo' ),
		'add_new_item'               => __( 'Add New Sector', 'paolo' ),
		'edit_item'                  => __( 'Edit Sector', 'paolo' ),
		'update_item'                => __( 'Update Sector', 'paolo' ),
		'separate_items_with_commas' => __( 'Separate sectors with commas', 'paolo' ),
		'search_items'               => __( 'Search Sectors', 'paolo' ),
		'add_or_remove_items'        => __( 'Add or remove sectors', 'paolo' ),
		'choose_from_most_used'      => __( 'Choose from the most used sectors', 'paolo' ),
		'not_found'                  => __( 'Not Found', 'paolo' ),
	);
	$rewrite = array(
		'slug'                       => 'sectors',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'sector', array( 'fair' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'paolo_sectors', 0 );