Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Review CPT

// Register Custom Post Type
function register_review_cpt() {

	$labels = array(
		'name'                => _x( 'Reviews', 'Post Type General Name', 'html5reset' ),
		'singular_name'       => _x( 'Review', 'Post Type Singular Name', 'html5reset' ),
		'menu_name'           => __( 'Reviews', 'html5reset' ),
		'parent_item_colon'   => __( 'Parent Review:', 'html5reset' ),
		'all_items'           => __( 'All Reviews', 'html5reset' ),
		'view_item'           => __( 'View Review', 'html5reset' ),
		'add_new_item'        => __( 'Add New Review', 'html5reset' ),
		'add_new'             => __( 'Add New', 'html5reset' ),
		'edit_item'           => __( 'Edit Review', 'html5reset' ),
		'update_item'         => __( 'Update Review', 'html5reset' ),
		'search_items'        => __( 'Search Reviews', 'html5reset' ),
		'not_found'           => __( 'Not found', 'html5reset' ),
		'not_found_in_trash'  => __( 'Not found in Trash', 'html5reset' ),
	);
	$args = array(
		'label'               => __( 'review', 'html5reset' ),
		'description'         => __( 'Review Description', 'html5reset' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'excerpt', 'thumbnail', 'custom-fields', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 5,
		'menu_icon'           => '',
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'capability_type'     => 'page',
	);
	register_post_type( 'review', $args );

}

// Hook into the 'init' action
add_action( 'init', 'register_review_cpt', 0 );