I can't choose the custom taxonomy in my custom post type on Gutenberg

I'm new here and in Wordpress Development.I have a custom post type that works with a custom taxonomy. In the class

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 badges
Add a comment  | 

1 Answer 1

Reset to default 2

As 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!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745512713a4630843.html

相关推荐

  • I can't choose the custom taxonomy in my custom post type on Gutenberg

    I'm new here and in Wordpress Development.I have a custom post type that works with a custom taxonomy. In the class

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信