1.functions.phpに処理を追加 以下の処理をfunctions.phpに追加する。この時、投稿タイプの定義も同時に行う (以下の例は投稿タイプをnewsとしています) add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'news', [ // 投稿タイプ名の定義 'labels' => [ 'name' => 'ニュース', // 管理画面上で表示する投稿タイプ名 'singular_name' => 'news', // カスタム投稿の識別名 ], 'public' => true, // 投稿タイプをpublicにするか 'has_archive' => false, // アーカイブ機能ON/OFF 'menu_position' => 5