募集要項
if ( ! function_exists('custom_post_type') ) {
// Register Custom Post Type
function custom_post_type() {
$labels = array(
'name' => '募集要項',
'singular_name' => '募集要項',
'menu_name' => '募集要項',
'name_admin_bar' => '募集要項',
'archives' => 'アーカイブ',
'attributes' => '属性',
'parent_item_colon' => '',
'all_items' => 'すべての募集要項',
'add_new_item' => '',
'add_new' => '募集要項を追加する',
'new_item' => '',
'edit_item' => '',
'update_item' => '',
'view_item' => '',
'view_items' => '',
'search_items' => '',
'not_found' => '募集要項が見つかりません',
'not_found_in_trash' => '募集要項がゴミ箱にありません',
'featured_image' => '',
'set_featured_image' => '',
'remove_featured_image' => '',
'use_featured_image' => '',
'insert_into_item' => '',
'uploaded_to_this_item' => '募集要項にアップロードされました',
'items_list' => '募集要項一覧',
'items_list_navigation' => '',
'filter_items_list' => '',
);
$args = array(
'label' => '募集要項',
'description' => '募集要項を簡単に投稿・管理するためのカスタム投稿タイプです。この投稿タイプを利用して、採用情報や応募条件を記載して公開できます。',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes' ),
'taxonomies' => array( '雇用形態', '職種', '勤務地' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'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',
'show_in_rest' => true,
);
register_post_type( 'jobs', $args );
}
add_action( 'init', 'custom_post_type', 0 );
}