Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Gün Taksonomisi

if ( ! function_exists( 'custom_taxonomy' ) ) {

// Register Custom Taxonomy
function custom_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Günler', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Gün', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Günler', 'text_domain' ),
		'all_items'                  => __( 'Tüm Günler', 'text_domain' ),
		'parent_item'                => __( 'Üst Gün', 'text_domain' ),
		'parent_item_colon'          => __( 'Üst Gün:', 'text_domain' ),
		'new_item_name'              => __( 'Yeni Gün Adı', 'text_domain' ),
		'add_new_item'               => __( 'Yeni Gün Ekle', 'text_domain' ),
		'edit_item'                  => __( 'Günü Düzenle', 'text_domain' ),
		'update_item'                => __( 'Günü Düzenle', 'text_domain' ),
		'view_item'                  => __( 'Günü Göster', 'text_domain' ),
		'separate_items_with_commas' => __( 'Separate items with commas', 'text_domain' ),
		'add_or_remove_items'        => __( 'Add or remove items', 'text_domain' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'text_domain' ),
		'popular_items'              => __( 'Popüler gÜNLER', 'text_domain' ),
		'search_items'               => __( 'Gün Ara', 'text_domain' ),
		'not_found'                  => __( 'Bulunamadı', 'text_domain' ),
		'no_terms'                   => __( 'Gün yok', 'text_domain' ),
		'items_list'                 => __( 'Gün listesi', 'text_domain' ),
		'items_list_navigation'      => __( 'Items list navigation', 'text_domain' ),
	);
	$rewrite = array(
		'slug'                       => 'gun',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$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,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'gun', array( 'post' ), $args );

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

}