section
section
// Register Custom Post Type
function section_post_type() {
$labels = array(
'name' => 'sections',
'singular_name' => 'section',
'menu_name' => 'section',
'name_admin_bar' => 'section',
'archives' => 'section Archives',
'parent_item_colon' => 'Parent Item:',
'all_items' => 'Toutes les sections',
'add_new_item' => 'Ajouter une section',
'add_new' => 'jouter une section',
'new_item' => 'Nouvelle section',
'edit_item' => 'Modifier la section',
'update_item' => 'Mettre a jours la section',
'view_item' => 'Voir la section',
'search_items' => 'Rechercher une section',
'not_found' => 'rien',
'not_found_in_trash' => 'Rien dans la corbeille',
'featured_image' => 'Image de fond',
'set_featured_image' => 'Mettre une image de fond',
'remove_featured_image' => 'Supprimer l'image de fond',
'use_featured_image' => 'Utiliser en tant que fond de section',
'insert_into_item' => 'Insérée dans la section',
'uploaded_to_this_item' => 'Uploaded to this item',
'items_list' => 'Items list',
'items_list_navigation' => 'Items list navigation',
'filter_items_list' => 'Filter items list',
);
$args = array(
'label' => 'section',
'description' => '...',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'page-attributes', 'post-formats', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-welcome-view-site',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'section', $args );
}
add_action( 'init', 'section_post_type', 0 );