Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Future Jobs

// Register Custom Post Type
function positions_post_type() {

	$labels = array(
		'name'                  => _x( 'Stillinger', 'Post Type General Name', 'fs' ),
		'singular_name'         => _x( 'Stilling', 'Post Type Singular Name', 'fs' ),
		'menu_name'             => __( 'Lediger stillinger', 'fs' ),
		'name_admin_bar'        => __( 'Stillinger', 'fs' ),
		'archives'              => __( 'Stillingsarkiv', 'fs' ),
		'attributes'            => __( 'Item Attributes', 'fs' ),
		'parent_item_colon'     => __( 'Parent Item:', 'fs' ),
		'all_items'             => __( 'Alle stillinger', 'fs' ),
		'add_new_item'          => __( 'Legg til ny stilling', 'fs' ),
		'add_new'               => __( 'Ny stilling', 'fs' ),
		'new_item'              => __( 'Ny stilling', 'fs' ),
		'edit_item'             => __( 'Rediger stilling', 'fs' ),
		'update_item'           => __( 'Oppdater stilling', 'fs' ),
		'view_item'             => __( 'Vis stilling', 'fs' ),
		'view_items'            => __( 'Vis stillinger', 'fs' ),
		'search_items'          => __( 'Søk i stillinger', 'fs' ),
		'not_found'             => __( 'Ikke funnet', 'fs' ),
		'not_found_in_trash'    => __( 'Ikke funnet i søppelet', 'fs' ),
		'featured_image'        => __( 'Framhevet bilde', 'fs' ),
		'set_featured_image'    => __( 'Velg framhevet bilde', 'fs' ),
		'remove_featured_image' => __( 'Fjern framhevet bilde', 'fs' ),
		'use_featured_image'    => __( 'Bruk som framhevet bilde', 'fs' ),
		'insert_into_item'      => __( 'Sett inn i stilling', 'fs' ),
		'uploaded_to_this_item' => __( 'Lastet opp til denne stillingen', 'fs' ),
		'items_list'            => __( 'Stillingsliste', 'fs' ),
		'items_list_navigation' => __( 'Items list navigation', 'fs' ),
		'filter_items_list'     => __( 'Filter items list', 'fs' ),
	);
	$rewrite = array(
		'slug'                  => 'ledig-stilling',
		'with_front'            => true,
		'pages'                 => true,
		'feeds'                 => true,
	);
	$args = array(
		'label'                 => __( 'Stilling', 'fs' ),
		'description'           => __( 'Ledige stillinger', 'fs' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', ),
		'hierarchical'          => true,
		'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'           => 'futurejobs',
		'exclude_from_search'   => false,
		'publicly_queryable'    => true,
		'rewrite'               => $rewrite,
		'capability_type'       => 'page',
	);
	register_post_type( 'futurejobs', $args );

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