Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Landscaper Category

This goes with wcd_landscaper cpt

// Register Custom Taxonomy
function landscaper_categories() {

	$labels = array(
		'name'                       => 'Landscaper Categories',
		'singular_name'              => 'Landscaper Category',
		'menu_name'                  => 'Landscaper Category',
		'all_items'                  => 'All Landscaper Categories',
		'parent_item'                => 'Parent Landscaper Category',
		'parent_item_colon'          => 'Parent Landscaper Category:',
		'new_item_name'              => 'New Landscaper Category Name',
		'add_new_item'               => 'Add New Landscaper Category',
		'edit_item'                  => 'Edit Landscaper Category',
		'update_item'                => 'Update Landscaper Category',
		'view_item'                  => 'View Landscaper Category',
		'separate_items_with_commas' => 'Separate landscaper categories with commas',
		'add_or_remove_items'        => 'Add or remove landscaper categories',
		'choose_from_most_used'      => 'Choose from the most used',
		'popular_items'              => 'Popular Landscaper Categories',
		'search_items'               => 'Search Landscaper Categories',
		'not_found'                  => 'Not Found',
		'no_terms'                   => 'No landscaper categories',
		'items_list'                 => 'Landscaper Categories list',
		'items_list_navigation'      => 'Landscaper Categories list navigation',
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'landscaper_category', array( 'landscaper' ), $args );

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