Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

À propos

// Register Custom Post Type
function cpt_apropos() {

	$labels = array(
		'name'                => 'À propos',
		'singular_name'       => 'À propos',
		'menu_name'           => 'À propos',
		'parent_item_colon'   => 'Parent Item :',
		'all_items'           => 'Tout',
		'view_item'           => 'Voir l'article',
		'add_new_item'        => 'Ajouter un nouveau',
		'add_new'             => 'Ajouter',
		'edit_item'           => 'Modifier',
		'update_item'         => 'Mettre à jour',
		'search_items'        => 'Recherche',
		'not_found'           => 'Aucun résultat trouvé.',
		'not_found_in_trash'  => 'La corbeille est vide.',
	);
	$args = array(
		'label'               => 'a-propos',
		'description'         => 'CPT de la section À propos',
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', ),
		'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' => false,
		'publicly_queryable'  => true,
		'capability_type'     => 'page',
	);
	register_post_type( 'a-propos', $args );

}

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