Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Ambassador Post Type

Custom post type for ambassadors on Save Korean Dogs.

if ( ! function_exists('ambassador_post_type') ) {

// Register Custom Post Type
function ambassador_post_type() {

	$labels = array(
		'name'                => 'Ambassadors',
		'singular_name'       => 'Ambassador',
		'menu_name'           => 'Ambassadors',
		'name_admin_bar'      => 'Ambassadors',
		'parent_item_colon'   => 'Parent Item:',
		'all_items'           => 'All Ambassadors',
		'add_new_item'        => 'Add New Ambassador',
		'add_new'             => 'Add New',
		'new_item'            => 'New Ambassador',
		'edit_item'           => 'Edit Ambassador',
		'update_item'         => 'Update Ambassador',
		'view_item'           => 'View Ambassador',
		'search_items'        => 'Search Ambassador',
		'not_found'           => 'No ambassadors found',
		'not_found_in_trash'  => 'No ambassadors found in Trash',
	);
	$args = array(
		'label'               => 'ambassador',
		'description'         => 'Save Korean Dogs volunteers.',
		'labels'              => $labels,
		'supports'            => array( 'title', 'thumbnail', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 5,
		'menu_icon'           => 'dashicons-businessman',
		'show_in_admin_bar'   => true,
		'show_in_nav_menus'   => false,
		'can_export'          => true,
		'has_archive'         => false,		
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'capability_type'     => 'page',
	);
	register_post_type( 'ambassador', $args );

}

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

}