Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

UI Projects Slider

// Register Custom Post Type
function ui_projects() {

	$labels = array(
		'name'                => _x( 'Projects Slides', 'Post Type General Name', 'text_domain' ),
		'singular_name'       => _x( 'Projects Slide', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'           => __( 'Projects Slides', 'text_domain' ),
		'parent_item_colon'   => __( 'Parent Slide:', 'text_domain' ),
		'all_items'           => __( 'All Slides', 'text_domain' ),
		'view_item'           => __( 'View Slide', 'text_domain' ),
		'add_new_item'        => __( 'Add New Slide', 'text_domain' ),
		'add_new'             => __( 'Add New Slide', 'text_domain' ),
		'edit_item'           => __( 'Edit Slide', 'text_domain' ),
		'update_item'         => __( 'Update Slide', 'text_domain' ),
		'search_items'        => __( 'Search Slide', 'text_domain' ),
		'not_found'           => __( 'No slides found.', 'text_domain' ),
		'not_found_in_trash'  => __( 'No slides found in trash.', 'text_domain' ),
	);
	$args = array(
		'label'               => __( 'ui_projects_key', 'text_domain' ),
		'description'         => __( 'Slides used on the Projects page.', 'text_domain' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'thumbnail', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 5,
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => true,
		'publicly_queryable'  => true,
		'capability_type'     => 'page',
	);
	register_post_type( 'ui_projects_key', $args );

}

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