Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

İlan Taxonomy

İlan Taxonomy

if ( ! function_exists( 'ilan_taxonomy' ) ) {

// Register Custom Taxonomy
function ilan_taxonomy() {

	$labels = array(
		'name'                       => _x( 'İlan Kategorileri', 'Taxonomy General Name', 'ysrtema' ),
		'singular_name'              => _x( 'İlan Kategori', 'Taxonomy Singular Name', 'ysrtema' ),
		'menu_name'                  => __( 'İlan Kategori', 'ysrtema' ),
		'all_items'                  => __( 'Hepsi', 'ysrtema' ),
		'parent_item'                => __( 'Üst Kategori', 'ysrtema' ),
		'parent_item_colon'          => __( 'Üst Kategori:', 'ysrtema' ),
		'new_item_name'              => __( 'Yeni İlan Ekle', 'ysrtema' ),
		'add_new_item'               => __( 'Yeni Ekle', 'ysrtema' ),
		'edit_item'                  => __( 'Düzenle', 'ysrtema' ),
		'update_item'                => __( 'Güncelle', 'ysrtema' ),
		'view_item'                  => __( 'Görüntüle', 'ysrtema' ),
		'separate_items_with_commas' => __( 'Her birini virgülle ayırın.', 'ysrtema' ),
		'add_or_remove_items'        => __( 'Ekle yada kaldır', 'ysrtema' ),
		'choose_from_most_used'      => __( 'En çok kullanılanları seçin', 'ysrtema' ),
		'popular_items'              => __( 'Popüler Kategoriler', 'ysrtema' ),
		'search_items'               => __( 'Ara', 'ysrtema' ),
		'not_found'                  => __( 'Bulunamadı', 'ysrtema' ),
	);
	$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( 'ilanlar', array( 'standart_ilan', 'premium_ilan' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'ilan_taxonomy', 0 );

}