Hizmet Kategori Taxonomy
// Register Custom Taxonomy
function custom_taxonomy() {
$labels = array(
'name' => _x( 'Hizmet Kategorileri', 'Taxonomy General Name', 'themesettings' ),
'singular_name' => _x( 'Hizmet Kategorisi', 'Taxonomy Singular Name', 'themesettings' ),
'menu_name' => __( 'Kategoriler', 'themesettings' ),
'all_items' => __( 'Tümü', 'themesettings' ),
'parent_item' => __( 'Ebeveyn', 'themesettings' ),
'parent_item_colon' => __( 'Ebeveyn:', 'themesettings' ),
'new_item_name' => __( 'Kategori Adı', 'themesettings' ),
'add_new_item' => __( 'Yeni Ekle', 'themesettings' ),
'edit_item' => __( 'Düzenle', 'themesettings' ),
'update_item' => __( 'Güncelle', 'themesettings' ),
'view_item' => __( 'Göster', 'themesettings' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'themesettings' ),
'add_or_remove_items' => __( 'Ekle veya Kaldır', 'themesettings' ),
'choose_from_most_used' => __( 'Çok Kullanılanlardan Seç', 'themesettings' ),
'popular_items' => __( 'Popüler', 'themesettings' ),
'search_items' => __( 'Ara', 'themesettings' ),
'not_found' => __( 'Bulunamadı', 'themesettings' ),
'no_terms' => __( 'Kayıt Yok', 'themesettings' ),
'items_list' => __( 'Items list', 'themesettings' ),
'items_list_navigation' => __( 'Items list navigation', 'themesettings' ),
);
$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( 'hizmet-kategori', array( 'hizmet' ), $args );
}
add_action( 'init', 'custom_taxonomy', 0 );