Position
// Register Custom Post Type
function positions_cpt() {
$labels = array(
'name' => _x( 'Positions', 'Post Type General Name', 'golf' ),
'singular_name' => _x( 'Position', 'Post Type Singular Name', 'golf' ),
'menu_name' => __( 'משרות', 'golf' ),
'parent_item_colon' => __( 'Parent Item:', 'golf' ),
'all_items' => __( 'כל המשרות', 'golf' ),
'view_item' => __( 'הצג משרה', 'golf' ),
'add_new_item' => __( 'הוסף משרה חדשה', 'golf' ),
'add_new' => __( 'חדש', 'golf' ),
'edit_item' => __( 'עריכה', 'golf' ),
'update_item' => __( 'עדכון', 'golf' ),
'search_items' => __( 'חפש משרה', 'golf' ),
'not_found' => __( 'לא נמצאו', 'golf' ),
'not_found_in_trash' => __( 'לנמצאו בפח', 'golf' ),
);
$args = array(
'label' => __( 'position', 'golf' ),
'description' => __( 'Open Positions', 'golf' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', ),
'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,
'capability_type' => 'page',
);
register_post_type( 'position', $args );
}
// Hook into the 'init' action
add_action( 'init', 'positions_cpt', 0 );