admin管理员组文章数量:1023856
I'm new here and in Wordpress Development.
I have a custom post type that works with a custom taxonomy. In the classic editor, I can choose the category or add new if I want, but when I'm on Gutenberg the option doesn't show it.
Thanks]1
I'm new here and in Wordpress Development.
I have a custom post type that works with a custom taxonomy. In the classic editor, I can choose the category or add new if I want, but when I'm on Gutenberg the option doesn't show it.
Thanks]1
Share Improve this question asked May 8, 2019 at 14:33 Martin ArzuagaMartin Arzuaga 132 bronze badges1 Answer
Reset to default 2As Gutenberg does nearly everything over REST-API, you will have to update your register_taxonomy
to be shown in REST, as the default value for show_in_rest
in register_taxonomy
is false
.
So, you update your $args
array in the function custom_taxonomy
and add
'show_in_rest' => true
and you should be fine.
Happy Coding!
I'm new here and in Wordpress Development.
I have a custom post type that works with a custom taxonomy. In the classic editor, I can choose the category or add new if I want, but when I'm on Gutenberg the option doesn't show it.
Thanks]1
I'm new here and in Wordpress Development.
I have a custom post type that works with a custom taxonomy. In the classic editor, I can choose the category or add new if I want, but when I'm on Gutenberg the option doesn't show it.
Thanks]1
Share Improve this question asked May 8, 2019 at 14:33 Martin ArzuagaMartin Arzuaga 132 bronze badges1 Answer
Reset to default 2As Gutenberg does nearly everything over REST-API, you will have to update your register_taxonomy
to be shown in REST, as the default value for show_in_rest
in register_taxonomy
is false
.
So, you update your $args
array in the function custom_taxonomy
and add
'show_in_rest' => true
and you should be fine.
Happy Coding!
本文标签: I can39t choose the custom taxonomy in my custom post type on Gutenberg
版权声明:本文标题:I can't choose the custom taxonomy in my custom post type on Gutenberg 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745512712a2153898.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论