Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

country taxonomy

// Register Custom Taxonomy
function custom_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Ülkeler', 'Taxonomy General Name', 'scaefy' ),
		'singular_name'              => _x( 'Ülkeler', 'Taxonomy Singular Name', 'scaefy' ),
		'menu_name'                  => __( 'Ülkeler', 'scaefy' ),
		'all_items'                  => __( 'Tümü', 'scaefy' ),
		'parent_item'                => __( 'Alt:', 'scaefy' ),
		'parent_item_colon'          => __( 'Alt:', 'scaefy' ),
		'new_item_name'              => __( 'Yeni Ekle', 'scaefy' ),
		'add_new_item'               => __( 'Yeni Ekle', 'scaefy' ),
		'edit_item'                  => __( 'Düzenle', 'scaefy' ),
		'update_item'                => __( 'Güncelle', 'scaefy' ),
		'view_item'                  => __( 'Göster', 'scaefy' ),
		'separate_items_with_commas' => __( 'Virgüller ile ayırarak birden fazla ekleyebilirsiniz.', 'scaefy' ),
		'add_or_remove_items'        => __( 'Ekle/Kaldır', 'scaefy' ),
		'choose_from_most_used'      => __( 'Sık kullanılanlar arasından seç', 'scaefy' ),
		'popular_items'              => __( 'Popüler ülkeler', 'scaefy' ),
		'search_items'               => __( 'Ara', 'scaefy' ),
		'not_found'                  => __( 'Bulunamadı', 'scaefy' ),
		'no_terms'                   => __( 'Bulunamadı', 'scaefy' ),
		'items_list'                 => __( 'Listele', 'scaefy' ),
		'items_list_navigation'      => __( 'Menüdeki ülkeler', 'scaefy' ),
	);
	$rewrite = array(
		'slug'                       => 'ulke',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'country', array( 'ilanlar' ), $args );

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