Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

The Garden – Menu

// Register Custom Taxonomy
function thegarden_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Categories', 'Taxonomy General Name', 'thegarden' ),
		'singular_name'              => _x( 'Category', 'Taxonomy Singular Name', 'thegarden' ),
		'menu_name'                  => __( 'Category', 'thegarden' ),
		'all_items'                  => __( 'All Categories', 'thegarden' ),
		'parent_item'                => __( 'Parent Category', 'thegarden' ),
		'parent_item_colon'          => __( 'Parent Category:', 'thegarden' ),
		'new_item_name'              => __( 'New Item Category', 'thegarden' ),
		'add_new_item'               => __( 'Add New Category', 'thegarden' ),
		'edit_item'                  => __( 'Edit Category', 'thegarden' ),
		'update_item'                => __( 'Update Category', 'thegarden' ),
		'view_item'                  => __( 'View Category', 'thegarden' ),
		'separate_items_with_commas' => __( 'Separate categories with commas', 'thegarden' ),
		'add_or_remove_items'        => __( 'Add or remove categories', 'thegarden' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'thegarden' ),
		'popular_items'              => __( 'Popular Categories', 'thegarden' ),
		'search_items'               => __( 'Search Categories', 'thegarden' ),
		'not_found'                  => __( 'Not Found', 'thegarden' ),
	);
	$rewrite = array(
		'slug'                       => '',
		'with_front'                 => false,
		'hierarchical'               => true,
	);
	$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( 'cat-service', array( 'type-service' ), $args );

}

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