Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Open Positions

// Register Custom Post Type
function hg_open_positions() {

	$labels = array(
		'name'                  => 'Open Positions',
		'singular_name'         => 'Open Position',
		'menu_name'             => 'Careers',
		'name_admin_bar'        => 'Open Positions',
		'parent_item_colon'     => 'Parent Open Position',
		'all_items'             => 'All Open Positions',
		'add_new_item'          => 'Add New Open Position',
		'add_new'               => 'Add New Open Position',
		'new_item'              => 'New Open PositionItem',
		'edit_item'             => 'Edit Open Position',
		'update_item'           => 'Update Open Position',
		'view_item'             => 'View Open Position',
		'search_items'          => 'Search Open Position',
		'not_found'             => 'Not found',
		'not_found_in_trash'    => 'Not found in Trash',
		'items_list'            => 'Open Positions list',
		'items_list_navigation' => 'Open Positions list navigation',
		'filter_items_list'     => 'Filter Open Positions list',
	);
	$args = array(
		'label'                 => 'Open Position',
		'description'           => 'Open positions at HunGal.',
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'custom-fields', ),
		'taxonomies'            => array( 'category', 'post_tag' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-megaphone',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => true,		
		'exclude_from_search'   => false,
		'publicly_queryable'    => true,
		'capability_type'       => 'page',
	);
	register_post_type( 'open_positions', $args );

}
add_action( 'init', 'hg_open_positions', 0 );