Custom Post Type – Profile – WBS
Profiles for staff for WBS
// Register Custom Post Type function cpt_profile() { $labels = array( 'name' => _x( 'Profiles', 'Post Type General Name', 'underscores' ), 'singular_name' => _x( 'Profile', 'Post Type Singular Name', 'underscores' ), 'menu_name' => __( 'Profiles', 'underscores' ), 'name_admin_bar' => __( 'Profile', 'underscores' ), 'archives' => __( 'Profile Archives', 'underscores' ), 'attributes' => __( 'Profile Attributes', 'underscores' ), 'parent_item_colon' => __( 'Parent Profile:', 'underscores' ), 'all_items' => __( 'All Profiles', 'underscores' ), 'add_new_item' => __( 'Add New Profile', 'underscores' ), 'add_new' => __( 'Add New', 'underscores' ), 'new_item' => __( 'New Profile', 'underscores' ), 'edit_item' => __( 'Edit Profile', 'underscores' ), 'update_item' => __( 'Update Profile', 'underscores' ), 'view_item' => __( 'View Profile', 'underscores' ), 'view_items' => __( 'View Profiles', 'underscores' ), 'search_items' => __( 'Search Profile', 'underscores' ), 'not_found' => __( 'Not found', 'underscores' ), 'not_found_in_trash' => __( 'Not found in Trash', 'underscores' ), 'featured_image' => __( 'Featured Image', 'underscores' ), 'set_featured_image' => __( 'Set featured image', 'underscores' ), 'remove_featured_image' => __( 'Remove featured image', 'underscores' ), 'use_featured_image' => __( 'Use as featured image', 'underscores' ), 'insert_into_item' => __( 'Insert into item', 'underscores' ), 'uploaded_to_this_item' => __( 'Uploaded to this profile', 'underscores' ), 'items_list' => __( 'Profiles list', 'underscores' ), 'items_list_navigation' => __( 'Profiles list navigation', 'underscores' ), 'filter_items_list' => __( 'Filter profiles list', 'underscores' ), ); $rewrite = array( 'slug' => 'our-team', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'Profile', 'underscores' ), 'description' => __( 'Profile, biography, or about page for a person.', 'underscores' ), 'labels' => $labels, 'supports' => array( 'revisions' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-id', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'profile', $args ); } add_action( 'init', 'cpt_profile', 0 );