Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

タクソノミー-職種

if ( ! function_exists( 'custom_taxonomy' ) ) {

// Register Custom Taxonomy
function custom_taxonomy() {

	$labels = array(
		'name'                       => '職種',
		'singular_name'              => '職種',
		'menu_name'                  => '職種',
		'all_items'                  => '職種',
		'parent_item'                => '',
		'parent_item_colon'          => '',
		'new_item_name'              => '新規職種',
		'add_new_item'               => '職種の追加',
		'edit_item'                  => '職種の編集',
		'update_item'                => '職種を更新',
		'view_item'                  => '職種を表示',
		'separate_items_with_commas' => '',
		'add_or_remove_items'        => '',
		'choose_from_most_used'      => '',
		'popular_items'              => 'よく使う職種',
		'search_items'               => '職種の検索',
		'not_found'                  => '職種が見つかりません',
		'no_terms'                   => '職種がありません',
		'items_list'                 => '職種一覧',
		'items_list_navigation'      => '',
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'job-category', array( 'post' ), $args );

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

}