ここで助けていただければ幸いです。カスタム投稿タイプとマップ機能を作成しました。カスタム投稿タイプは管理パネルに表示されますが、新しい投稿を追加できません。capabilities=> $capabilities を削除して、capability_type => 'post' に変更すると、機能し始めます。
// Human Sciences posts
$capabilities = array(
'publish_posts' => 'publish_human',
'edit_posts' => 'edit_humans',
'edit_others_posts' => 'edit_others_human',
'delete_posts' => 'delete_human',
'delete_others_posts' => 'delete_others_human',
'read_private_posts' => 'read_private_human',
'edit_post' => 'edit_human',
'delete_post' => 'delete_human',
'read_post' => 'read_human',
);
$labels = array(
'name' => 'Human Sciences Post',
'singular_name' => 'Post',
'menu_name' => 'Human Sciences Posts',
'name_admin_bar' => 'Human Sciences',
'add_new' => 'Add New',
'add_new_item' => 'Add New Post',
'new_item' => 'New Human Sciences Post',
'edit_item' => 'Edit Post',
'view_item' => 'View Posts',
'all_items' => 'All Human Sciences Posts',
'search_items' => 'Search Human Sciences Posts',
'parent_item_colon' => 'Parent Posts',
'not_found' => 'No Post Found',
'not_found_in_trash' => 'No Post Found in Trash',
);
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 6,
'menu_icon' => 'dashicons-visibility',
'query_var' => true,
'rewrite' => array( 'slug' => 'human-science' ),
'capabilities' => $capabilities,
'has_archive' => true,
'hierarchical' => true,
'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'post_formats' ),
'taxonomies' => array( 'category', 'post_tag')
);
単純な間違いを犯したと想像しますが、それを理解できません。誰かがコードを見て、私が間違ったことを教えてください。私はここで髪を引っ張っています。