Ledig stillinger
Work Personell
// Register Custom Post Type
function ledigestillinger() {
$labels = array(
'name' => _x( 'Ledig stillinger', 'Post Type General Name', 'workpersonell' ),
'singular_name' => _x( 'Ledige stilling', 'Post Type Singular Name', 'workpersonell' ),
'menu_name' => __( 'Ledig Stillinger', 'workpersonell' ),
'parent_item_colon' => __( 'Parent Item:', 'workpersonell' ),
'all_items' => __( 'Alle stillinger', 'workpersonell' ),
'view_item' => __( 'Vis stilling', 'workpersonell' ),
'add_new_item' => __( 'Legg til ny stilling', 'workpersonell' ),
'add_new' => __( 'Ny stilling', 'workpersonell' ),
'edit_item' => __( 'Rediger', 'workpersonell' ),
'update_item' => __( 'Oppdater', 'workpersonell' ),
'search_items' => __( 'Søk ', 'workpersonell' ),
'not_found' => __( 'Ikke funnet', 'workpersonell' ),
'not_found_in_trash' => __( 'Ikke funnet i søppel', 'workpersonell' ),
);
$args = array(
'label' => __( 'ledige_stillinger', 'workpersonell' ),
'description' => __( 'Ledige stillinger', 'workpersonell' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', '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' => 20,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'ledige_stillinger', $args );
}
// Hook into the 'init' action
add_action( 'init', 'ledigestillinger', 0 );