- // functions.php に追加function create_weather_post_type() { register_post_type( ‘weather’, array( ‘labels’ => array( ‘name’ => ‘天気’, ‘singular_name’ => ‘天気情報’, ), ‘public’ => true, ‘has_archive’ => true, ‘menu_icon’ => ‘dashicons-cloud’, ) );}add_action( ‘init’, ‘create_weather_post_type’ );