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