Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Team Members — DHNow

// Register Custom Post Type
function dhnow_staff() {

	$labels = array(
		'name'                => 'Team Members',
		'singular_name'       => 'Team',
		'menu_name'           => 'Team Members',
		'name_admin_bar'      => 'Team Members',
		'parent_item_colon'   => 'Parent Item:',
		'all_items'           => 'All',
		'add_new_item'        => 'Add New ',
		'add_new'             => 'Add New',
		'new_item'            => 'New Item',
		'edit_item'           => 'Edit Item',
		'update_item'         => 'Update Item',
		'view_item'           => 'View Item',
		'search_items'        => 'Search Item',
		'not_found'           => 'Not found',
		'not_found_in_trash'  => 'Not found in Trash',
	);
	$args = array(
		'label'               => 'dhnow_staff',
		'description'         => 'Current and Former DHNow Staff',
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'thumbnail', 'custom-fields', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 5,
		'menu_icon'           => 'dashicons-groups',
		'show_in_admin_bar'   => true,
		'show_in_nav_menus'   => true,
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => true,
		'publicly_queryable'  => true,
		'capability_type'     => 'page',
	);
	register_post_type( 'dhnow_staff', $args );

}

// Hook into the 'init' action
add_action( 'init', 'dhnow_staff', 0 );