Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Team

if ( ! function_exists('custom_post_type_team') ) {

// Register Custom Post Type
function custom_post_type_team() {

	$labels = array(
		'name'                => _x( 'Our Team', 'Post Type General Name', 'twenty_fifteeen' ),
		'singular_name'       => _x( 'Our Team', 'Post Type Singular Name', 'twenty_fifteeen' ),
		'menu_name'           => __( 'Our Team', 'twenty_fifteeen' ),
		'parent_item_colon'   => __( 'Parent Team:', 'twenty_fifteeen' ),
		'all_items'           => __( 'All Team Members', 'twenty_fifteeen' ),
		'view_item'           => __( 'View Team Member', 'twenty_fifteeen' ),
		'add_new_item'        => __( 'Add New Team Member', 'twenty_fifteeen' ),
		'add_new'             => __( 'Add New', 'twenty_fifteeen' ),
		'edit_item'           => __( 'Edit Team Member', 'twenty_fifteeen' ),
		'update_item'         => __( 'Update Item Member', 'twenty_fifteeen' ),
		'search_items'        => __( 'Search Team Members', 'twenty_fifteeen' ),
		'not_found'           => __( 'Not found', 'twenty_fifteeen' ),
		'not_found_in_trash'  => __( 'Not found in Trash', 'twenty_fifteeen' ),
	);
	$rewrite = array(
		'slug'                => 'our-team',
		'with_front'          => true,
		'pages'               => true,
		'feeds'               => true,
	);
	$args = array(
		'label'               => __( 'eemjii_team', 'twenty_fifteeen' ),
		'description'         => __( 'Team', 'twenty_fifteeen' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'thumbnail', ),
		'taxonomies'          => array( 'category', 'post_tag' ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 5,
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'rewrite'             => $rewrite,
		'capability_type'     => 'page',
	);
	register_post_type( 'eemjii_team', $args );

}

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

}