Post Type Slide
Custom Post Type Slide PEC-2
// Register Custom Post Type function custom_post_type_slide() { $labels = array( 'name' => _x( 'Resource Centers', 'Post Type General Name', 'theissue' ), 'singular_name' => _x( 'Resource Center', 'Post Type Singular Name', 'theissue' ), 'menu_name' => __( 'Resource Center', 'theissue' ), 'name_admin_bar' => __( 'Post Type', 'theissue' ), 'archives' => __( 'RC archives', 'theissue' ), 'attributes' => __( 'Item Attributes', 'theissue' ), 'parent_item_colon' => __( 'Parent RC:', 'theissue' ), 'all_items' => __( 'All RCs', 'theissue' ), 'add_new_item' => __( 'Add new Slide', 'theissue' ), 'add_new' => __( 'Add New', 'theissue' ), 'new_item' => __( 'New RC', 'theissue' ), 'edit_item' => __( 'Edit RC', 'theissue' ), 'update_item' => __( 'Update RC', 'theissue' ), 'view_item' => __( 'View RC', 'theissue' ), 'view_items' => __( 'View RC', 'theissue' ), 'search_items' => __( 'Search RC', 'theissue' ), 'not_found' => __( 'No Slides found', 'theissue' ), 'not_found_in_trash' => __( 'No Slides found in trash', 'theissue' ), 'featured_image' => __( 'Featured image for this RC', 'theissue' ), 'set_featured_image' => __( 'Set featured image for this RC', 'theissue' ), 'remove_featured_image' => __( 'Remove featured image for this RC', 'theissue' ), 'use_featured_image' => __( 'Use as featured image for this RC', 'theissue' ), 'insert_into_item' => __( 'Insert into RC', 'theissue' ), 'uploaded_to_this_item' => __( 'Upload to this RC', 'theissue' ), 'items_list' => __( 'RC list', 'theissue' ), 'items_list_navigation' => __( 'RC list navigation', 'theissue' ), 'filter_items_list' => __( 'Filter RC list', 'theissue' ), ); $args = array( 'label' => __( 'Resource Center', 'theissue' ), 'description' => __( 'Resource Center - New PEC', 'theissue' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, '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' => 'post', 'show_in_rest' => true, 'rest_base' => 'slide', ); register_post_type( 'resource_center', $args ); } add_action( 'init', 'custom_post_type_slide', 0 );