カスタム投稿タイプ
汎用日本語カスタム投稿タイプ
// Register Custom Post Type function cpt_marubun_works() { $labels = array( 'name' => '施工事例集', 'singular_name' => '施工事例集', 'menu_name' => '施工事例', 'name_admin_bar' => '施工事例', 'archives' => '施工事例アーカイブ', 'attributes' => '施工事例属性', 'parent_item_colon' => '親のアイテム:', 'all_items' => 'すべての事例', 'add_new_item' => '施工事例の新規追加', 'add_new' => '新規追加', 'new_item' => '新しい事例', 'edit_item' => '事例を編集', 'update_item' => '事例を更新', 'view_item' => '事例を見る', 'view_items' => '事例を見る', 'search_items' => '事例を検索', 'not_found' => '見つかりません', 'not_found_in_trash' => 'ゴミ箱に見つかりません', 'featured_image' => 'アイキャッチ画像', 'set_featured_image' => 'アイキャッチ画像を設定', 'remove_featured_image' => 'アイキャッチ画像を削除', 'use_featured_image' => 'アイキャッチ画像として使用', 'insert_into_item' => '事例に挿入', 'uploaded_to_this_item' => 'この事例にアップロードされました', 'items_list' => '事例リスト', 'items_list_navigation' => '事例リストナビ', 'filter_items_list' => '事例を絞り込む', ); $args = array( 'label' => '施工事例集', 'description' => '施工事例集登録画面', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, '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( 'work', $args ); } add_action( 'init', 'cpt_marubun_works', 0 );