Go to function.php file from your theme directory and then add this code to it:
/* Custom Post Type Start */
function create_posttype() {
register_post_type( ‘news’,
// CPT Options
array(
‘labels’ => array(
‘name’ => __( ‘news’ ),
‘singular_name’ => __( ‘News’ )
),
‘public’ => true,
‘has_archive’ => false,
‘rewrite’ => array(‘slug’ => ‘news’),
)
);
}
// Hooking up our function to theme setup
add_action( ‘init’, ‘create_posttype’ );
/* Custom Post Type End */
Once this code will be added, you will see the new post added into the dashboard, for creating custom post type WordPress you can follow this guide, it has all 3 types of posts tutorials.