您好我有以下分类:
register_taxonomy('user_position', 'user', array(
'hierarchical' => true,
'public' =>true,
'single_value' => false,
'show_admin_column' => true,
'labels' =>array(
'name' =>'User Category',
'singular_name' =>'User Category',
'menu_name' =>'User Categories',
'search_items' =>'Search User Categories',
'popular_items' =>'Popular User Categories',
'all_items' =>'All User Categories',
'edit_item' =>'Edit User Categories',
'update_item' =>'Update User Category',
'add_new_item' =>'Add New User Category',
'new_item_name' =>'New User Category Name',
'separate_items_with_commas'=>'Separate professions with commas',
'add_or_remove_items' =>'Add or remove professions',
'choose_from_most_used' =>'Choose from the most popular professions',
),
'rewrite' =>array(
'with_front' =>true,
'slug' =>'user-category',
),
'capabilities' => array(
'manage_terms' =>'manage_options',
'edit_terms' =>'manage_options',
'delete_terms' =>'manage_options',
'assign_terms' =>'read',
),
));
我还有一个名为文档的ACF转发器字段,我已将其分配给user_position术语,ACF字段正在添加到用户类别分类中,但是当我去添加字段时,数据未被保存,一次我按下蓝色按钮添加文档,没有任何内容被保存。
我已经尝试将assign_terms更改为'edit_posts',但这没有帮助,我查看了ACF论坛,并且遇到了一些主题,说字段名称可能很长,所以我缩短了它们但仍然没有运气。
任何人都可以帮我解决这个问题,还是指出我正确的方向?