Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Mekan

if ( ! function_exists('mekan_postu') ) {

// Register Custom Post Type
function mekan_postu() {

	$labels = array(
		'name'                  => 'Mekanlar',
		'singular_name'         => 'Mekan',
		'menu_name'             => 'Mekanlar',
		'name_admin_bar'        => 'Mekan',
		'archives'              => 'Mekan Arşivi',
		'attributes'            => 'Mekan Attributes',
		'parent_item_colon'     => 'Üst Mekan:',
		'all_items'             => 'Tüm Mekanlar',
		'add_new_item'          => 'Yeni Mekan Ekle',
		'add_new'               => 'Yeni Ekle',
		'new_item'              => 'Yeni Mekan',
		'edit_item'             => 'Mekan Düzenle',
		'update_item'           => 'Mekan Güncelle',
		'view_item'             => 'Mekan Görüntüle',
		'view_items'            => 'Mekanları Görüntüle',
		'search_items'          => 'Mekan Ara',
		'not_found'             => 'Bulunamadı',
		'not_found_in_trash'    => 'Çöp Kutusunda Bulunamadı',
		'featured_image'        => 'Kapak Görseli',
		'set_featured_image'    => 'Kapak Görseli Ekle',
		'remove_featured_image' => 'Kapak görselini kaldır',
		'use_featured_image'    => 'Kapak görseli olarak kullan',
		'insert_into_item'      => 'Mekana Ekle',
		'uploaded_to_this_item' => 'Bu mekana yüklendi',
		'items_list'            => 'Mekanların Listesi',
		'items_list_navigation' => 'Mekan Listesi Menüsü',
		'filter_items_list'     => 'Mekan Filtresi',
	);
	$args = array(
		'label'                 => 'Mekan',
		'description'           => 'Mekan içeriği türü.',
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail', 'comments', 'trackbacks', 'custom-fields' ),
		'taxonomies'            => array( 'mekan_kategori', 'mekan_etiket', 'mekan_hizmetler' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-location',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => true,
		'exclude_from_search'   => false,
		'publicly_queryable'    => true,
		'capability_type'       => 'post',
	);
	register_post_type( 'mekan', $args );

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

}