Staff Bio
Used for Staff Bios
// Register Custom Post Type function gko_generate_staff_type() { $labels = array( 'name' => _x( 'Staff Bios', 'Post Type General Name', 'gko' ), 'singular_name' => _x( 'Staff Bio', 'Post Type Singular Name', 'gko' ), 'menu_name' => __( 'Staff Bios', 'gko' ), 'name_admin_bar' => __( 'Staff Bios', 'gko' ), 'parent_item_colon' => __( 'Parent Item:', 'gko' ), 'all_items' => __( 'All Staff', 'gko' ), 'add_new_item' => __( 'Add New Bio', 'gko' ), 'add_new' => __( 'Add New', 'gko' ), 'new_item' => __( 'New Bio', 'gko' ), 'edit_item' => __( 'Edit Bio', 'gko' ), 'update_item' => __( 'Update Bio', 'gko' ), 'view_item' => __( 'View Bio', 'gko' ), 'search_items' => __( 'Search Staff', 'gko' ), 'not_found' => __( 'Not found', 'gko' ), 'not_found_in_trash' => __( 'Not found in Trash', 'gko' ), ); $rewrite = array( 'slug' => 'staff', 'with_front' => true, 'pages' => true, 'feeds' => false, ); $args = array( 'label' => __( 'staff-bio', 'gko' ), 'description' => __( 'Staff Post Type', 'gko' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'page-attributes', ), 'taxonomies' => array( 'category' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 25, 'menu_icon' => 'dashicons-admin-users', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'staff-bio', $args ); } // Hook into the 'init' action add_action( 'init', 'gko_generate_staff_type', 0 );