Chapters
// Register Custom Post Type
function scenic_chapters() {
$labels = array(
'name' => _x( 'Chapters', 'Post Type General Name', 'scenictexas' ),
'singular_name' => _x( 'Chapter', 'Post Type Singular Name', 'scenictexas' ),
'menu_name' => __( 'Chapters', 'scenictexas' ),
'name_admin_bar' => __( 'Post ChaptersType', 'scenictexas' ),
'archives' => __( 'Chapter Archives', 'scenictexas' ),
'attributes' => __( 'Chapter Attributes', 'scenictexas' ),
'parent_item_colon' => __( 'Parent Chapter:', 'scenictexas' ),
'all_items' => __( 'All Chapters', 'scenictexas' ),
'add_new_item' => __( 'Add New Chapter', 'scenictexas' ),
'add_new' => __( 'Add New', 'scenictexas' ),
'new_item' => __( 'New Chapter', 'scenictexas' ),
'edit_item' => __( 'Edit Chapter', 'scenictexas' ),
'update_item' => __( 'Update Chapter', 'scenictexas' ),
'view_item' => __( 'View Chapter', 'scenictexas' ),
'view_items' => __( 'View Chapters', 'scenictexas' ),
'search_items' => __( 'Search Chapter', 'scenictexas' ),
'not_found' => __( 'Not found', 'scenictexas' ),
'not_found_in_trash' => __( 'Not found in Trash', 'scenictexas' ),
'featured_image' => __( 'Featured Image', 'scenictexas' ),
'set_featured_image' => __( 'Set featured image', 'scenictexas' ),
'remove_featured_image' => __( 'Remove featured image', 'scenictexas' ),
'use_featured_image' => __( 'Use as featured image', 'scenictexas' ),
'insert_into_item' => __( 'Insert into Chapter', 'scenictexas' ),
'uploaded_to_this_item' => __( 'Uploaded to this Chapter', 'scenictexas' ),
'items_list' => __( 'Chapters list', 'scenictexas' ),
'items_list_navigation' => __( 'Chapters list navigation', 'scenictexas' ),
'filter_items_list' => __( 'Filter Chapters list', 'scenictexas' ),
);
$args = array(
'label' => __( 'Chapter', 'scenictexas' ),
'description' => __( 'Post Type Description', 'scenictexas' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'page-attributes' ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-admin-multisite',
'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',
'show_in_rest' => true,
);
register_post_type( 'Chapter', $args );
}
add_action( 'init', 'scenic_chapters', 0 );