Headshots
Custom Post Type for Headshots
// Register Custom Post Type function headshots() { $labels = array( 'name' => _x( 'Headshots', 'Post Type General Name', 'dreamlabnine' ), 'singular_name' => _x( 'Headshot', 'Post Type Singular Name', 'dreamlabnine' ), 'menu_name' => __( 'Headshots', 'dreamlabnine' ), 'parent_item_colon' => __( 'Parent Headshot:', 'dreamlabnine' ), 'all_items' => __( 'All Headshots', 'dreamlabnine' ), 'view_item' => __( 'View Headshot', 'dreamlabnine' ), 'add_new_item' => __( 'Add New Headshot', 'dreamlabnine' ), 'add_new' => __( 'Add New', 'dreamlabnine' ), 'edit_item' => __( 'Edit Headshot', 'dreamlabnine' ), 'update_item' => __( 'Update Headshot', 'dreamlabnine' ), 'search_items' => __( 'Search Headshots', 'dreamlabnine' ), 'not_found' => __( 'Not found', 'dreamlabnine' ), 'not_found_in_trash' => __( 'Not found in Trash', 'dreamlabnine' ), ); $args = array( 'label' => __( 'Headshots', 'dreamlabnine' ), 'description' => __( 'Headshots', 'dreamlabnine' ), 'labels' => $labels, 'supports' => array( 'title', 'thumbnail', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-format-gallery', 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => true, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'Headshots', $args ); } // Hook into the 'init' action add_action( 'init', 'headshots', 0 );