Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

staff

// Register Custom Post Type
function staff() {

	$labels = array(
		'name'                => 'Staff',
		'singular_name'       => 'Staff',
		'menu_name'           => 'Staff',
		'name_admin_bar'      => 'Staff',
		'parent_item_colon'   => 'Parent Item:',
		'all_items'           => 'Todos los empleados',
		'add_new_item'        => 'Agregar nuevo/a integrante',
		'add_new'             => 'Agregar nuevo',
		'new_item'            => 'Nuevo/a integrante',
		'edit_item'           => 'Editar integrante',
		'update_item'         => 'Actualizar integrante',
		'view_item'           => 'Ver integrante',
		'search_items'        => 'Buscar integrante',
		'not_found'           => 'No encontrado',
		'not_found_in_trash'  => 'No encontrado en la papelera',
	);
	$args = array(
		'label'               => 'staff',
		'description'         => 'Staff de Vida Sana',
		'labels'              => $labels,
		'supports'            => array( 'title', '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'     => 'post',
	);
	register_post_type( 'staff', $args );

}

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