Hello,
Gutenberd Editor is already enabled for all post types! If you can’t see Gutenberg in your custom post type probably your types haven’t the REST API support enabled..
If you use the code you have to add the following argument:
‘show_in_rest’ => true
If you are using a plugin to create new post types probably there is an option to enable the REST API support..
Anyway talking with the Gutenberg’s staff they said that in WP 5.0 you don’t need to enable rest api support for your post types because Gutenberg will be automatically enabled for all post types by default.
I hope it helps you.
Best Regards
-
This reply was modified 8 years, 1 month ago by
unCommons.
Let me explain. If I want to test things for multiple sites that all have events plugins or team plugins installed, I don’t want to work in code and mess with plugin codes for each site. Your plugins already picks up on the registered post types. So you could add the check for ‘show_in_rest’ and if false, switch it to true. and therefore make it available for this site.
This would make the testing of current sites much easier, available for non-developers and your plugin even more useful, not only for those who need Gutenberg disabled but also to those who need Gutenberg enabled and increase your user base<g>
Hello Brigit,
we think you’re right and we thinked to add this feature but we reconsidered that for 2 reasons:
1. The attribute “show_in_rest” will be no longer needed when Gutenberg Editor will be added to the WP core so ALL custom post types will show Gutenberg Editor by default..
2. To “regenerate” a custom post type created by users or other plugins is a bad practice
Gutenberg Manager is born mainly to “disable” Gutenberg Editor when it will be the standard Editor for WP (so always enabled) and to manage its blocks.
We don’t know what plugin you’re using to create custom post types but we advice to use -> https://ww.wp.xz.cn/plugins/custom-post-type-ui/
Indeed it has all attributes for custom post types -> https://www.awesomescreenshot.com/image/3358154/956cae4410d3805f6594904995d6c1ac
Best
Hello,
we can colse this support request.
Best