bobbingwide / oik-types

oik custom content type manager
http://www.oik-plugins.com/oik-plugins/oik-types/
GNU General Public License v2.0
1 stars 0 forks source link

Support for WordPress 5.0 and the new editor - Gutenberg #13

Closed bobbingwide closed 1 year ago

bobbingwide commented 6 years ago

Since early 2017 a new editor has been under development. Code named Gutenberg this new editor is being developed as a feature plugin. It is expected to be merged into core for WordPress 5.0.

We need to be aware of Gutenberg and to attempt to be compatible with it. Actually, it's the other way round. Gutenberg needs to be backward compatible with us.

Area Problem Reference
show_in_rest oik-types does not support show_in_rest See below
bobbingwide commented 6 years ago

Requirement

Enable a Custom Post Type's registration to be changed to either support show_in_rest or not. This can be used to control, by post type, which editor gets used.

show_in_rest Default Editor Other editor
Checked New Visual / Code editor Classic Visual / Text editor
Unchecked Classic Visual / Text editor none

Proposed solution

bobbingwide commented 6 years ago

This applies to custom taxonomies as well.

bobbingwide commented 6 years ago

The show_in_rest option is a useful field to display in the post type list. We can consider combining the information gathered for the [content] shortcode, being developed for oik-block, into the summary displays for oik-types.

bobbingwide commented 6 years ago

Note: If the post type has show_in_rest true but custom taxonomies are show_in_rest false then Gutenberg will not display the custom taxonomies. It gets a 403 error. This is a backwards compatibility problem.

There is another situation where Gutenberg crashes when trying to load the custom taxonomies, due to a 404 being returned on the REST request. I don't know if this has been raised as a Gutenberg issue. It's not that easily repeatable.

bobbingwide commented 1 year ago

Delivered in oik-types v2.0.0-alpha-20181019