Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Services Taxonomy

if ( ! function_exists( 'Services' ) ) {

// Register Custom Taxonomy
function Services() {

	$labels = array(
		'name'                       => 'Services',
		'singular_name'              => 'Service',
		'menu_name'                  => 'Service',
		'all_items'                  => 'All services',
		'parent_item'                => 'Parent service',
		'parent_item_colon'          => 'Parent service:',
		'new_item_name'              => 'New Service Name',
		'add_new_item'               => 'Add New Service',
		'edit_item'                  => 'Edit Service',
		'update_item'                => 'Update Service',
		'separate_items_with_commas' => 'Separate services with commas',
		'search_items'               => 'Search services',
		'add_or_remove_items'        => 'Add or remove services',
		'choose_from_most_used'      => 'Choose from the most used services',
		'not_found'                  => 'Not Found',
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'services', array( 'post' ), $args );

}

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

}