Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

custome taxonomy

// Register Custom Taxonomy
function custom_taxonomy() {

	$labels = array(
		'name'                       => _x( '施工事例カテゴリ', 'Taxonomy General Name', 'share_s' ),
		'singular_name'              => _x( '施工事例カテゴリ', 'Taxonomy Singular Name', 'share_s' ),
		'menu_name'                  => __( 'カテゴリ', 'share_s' ),
		'all_items'                  => __( 'カテゴリ', 'share_s' ),
		'parent_item'                => __( 'Parent Item', 'share_s' ),
		'parent_item_colon'          => __( 'Parent Item:', 'share_s' ),
		'new_item_name'              => __( 'カテゴリを追加', 'share_s' ),
		'add_new_item'               => __( 'カテゴリを追加', 'share_s' ),
		'edit_item'                  => __( 'カテゴリを編集', 'share_s' ),
		'update_item'                => __( 'カテゴリを更新', 'share_s' ),
		'view_item'                  => __( 'カテゴリを見る', 'share_s' ),
		'separate_items_with_commas' => __( 'Separate items with commas', 'share_s' ),
		'add_or_remove_items'        => __( 'Add or remove items', 'share_s' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'share_s' ),
		'popular_items'              => __( 'Popular Items', 'share_s' ),
		'search_items'               => __( 'Search Items', 'share_s' ),
		'not_found'                  => __( '見つかりません', 'share_s' ),
		'no_terms'                   => __( '見つかりません', 'share_s' ),
		'items_list'                 => __( 'Items list', 'share_s' ),
		'items_list_navigation'      => __( 'Items list navigation', 'share_s' ),
	);
	$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( 'gallery-cat', array( 'gallery' ), $args );

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