<?php

add_action( 'init', 'create_project_posttype' );

function create_project_posttype() {
  register_post_type( 'project',
    array(
      'labels' => array(
        'name' => __( 'Projects' ),
        'singular_name' => __( 'Project' )
      ),
      'public' => true,
      'has_archive' => true,
      'rewrite' => array('slug' => 'projects'),
    )
  );
}

<?php

add_action( 'init', 'create_project_posttype' );

function create_project_posttype() {
  register_post_type( 'project',
    array(
      'labels' => array(
        'name' => __( 'Projects' ),
        'singular_name' => __( 'Project' )
      ),
      'public' => true,
      'has_archive' => false,
      'rewrite' => array('slug' => 'projects'),
    )
  );
}

Fix project single view page
Fix project single view page
