Blog Text
// Register Custom Post Type
function Faydali_Bilgiler() {
$labels = array(
'name' => _x( 'Faydalı Bilgiler', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Faydalı Bilgiler', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Blog Yazıları', 'text_domain' ),
'name_admin_bar' => __( 'Blog Yazıları', 'text_domain' ),
'archives' => __( 'Blog Yazıları Arşivi', 'text_domain' ),
'parent_item_colon' => __( 'Üst Öğe:', 'text_domain' ),
'all_items' => __( 'Tüm Blog Yazıları', 'text_domain' ),
'add_new_item' => __( 'Yeni Blog Yazsı Ekle', 'text_domain' ),
'add_new' => __( 'Yeni Ekle', 'text_domain' ),
'new_item' => __( 'Yeni Blog Yazısı', 'text_domain' ),
'edit_item' => __( 'Blog Yazısı Düzenle', 'text_domain' ),
'update_item' => __( 'Blog Yazısı Güncelle', 'text_domain' ),
'view_item' => __( 'Blog Yazısı Görüntüle', 'text_domain' ),
'search_items' => __( 'Blog Yazısı Ara', 'text_domain' ),
'not_found' => __( 'Bulunamadı', 'text_domain' ),
'not_found_in_trash' => __( 'Silinenler Arasında Bulunamadı', 'text_domain' ),
'featured_image' => __( 'Öne Çıkarılmış Görsel', 'text_domain' ),
'set_featured_image' => __( 'Öne Çıkarılmış Görsel Ekle', 'text_domain' ),
'remove_featured_image' => __( 'Öne Çıkarılmış Görseli Kaldır', 'text_domain' ),
'use_featured_image' => __( 'Öne Çıkarılmış Görsel Olarak Belirle', 'text_domain' ),
'insert_into_item' => __( '', 'text_domain' ),
'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),
'items_list' => __( 'Blog Yazıları', 'text_domain' ),
'items_list_navigation' => __( 'Meni Blog Yazıları', 'text_domain' ),
'filter_items_list' => __( 'Blog Yazıları Filtrele', 'text_domain' ),
);
$args = array(
'label' => __( 'Faydalı Bilgiler', 'text_domain' ),
'description' => __( 'Faydalı Bilgler Yazı', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-welcome-write-blog',
'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' => 'page',
);
register_post_type( 'post_type', $args );
}
add_action( 'init', 'Faydali_Bilgiler', 0 );