function create_post_type() { register_post_type('info', array( 'labels' => array( 'name' => __('Infos'), 'singular_name' => __('Info'), ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'info'), // パーマリンクスラッグを設定 ) ); } add_action('init', 'create_post_type');