Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Slides – royalslider

// Register Custom Post Type
function custom_post_type() {

	$labels = array(
		'name'                => _x( 'Slides', 'Post Type General Name', 'text_domain' ),
		'singular_name'       => _x( 'Slide', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'           => __( 'Sliders', 'text_domain' ),
		'name_admin_bar'      => __( 'Sliders', 'text_domain' ),
		'parent_item_colon'   => __( 'Slide parente', 'text_domain' ),
		'all_items'           => __( 'Toutes les slides', 'text_domain' ),
		'add_new_item'        => __( 'Ajouter une nouvelle slide', 'text_domain' ),
		'add_new'             => __( 'Ajouter nouvelle', 'text_domain' ),
		'new_item'            => __( 'Nouvelle slide', 'text_domain' ),
		'edit_item'           => __( 'Modifier slide', 'text_domain' ),
		'update_item'         => __( 'Mettre à jour slide', 'text_domain' ),
		'view_item'           => __( 'Visualiser la slide', 'text_domain' ),
		'search_items'        => __( 'Rechercher une slide', 'text_domain' ),
		'not_found'           => __( 'Aucune slide trouvée', 'text_domain' ),
		'not_found_in_trash'  => __( 'Aucune slide trouvée dans la corbeille', 'text_domain' ),
	);
	$args = array(
		'label'               => __( 'Slides', 'text_domain' ),
		'description'         => __( 'Slides ', 'text_domain' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'excerpt', 'revisions', 'custom-fields', ),
		'taxonomies'          => array( 'slide-cat' ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 5,
		'menu_icon'           => 'dashicons-format-image',
		'show_in_admin_bar'   => true,
		'show_in_nav_menus'   => true,
		'can_export'          => true,
		'has_archive'         => false,		
		'exclude_from_search' => true,
		'publicly_queryable'  => true,
		'capability_type'     => 'page',
	);
	register_post_type( 'Slides', $args );

}

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