Hello!
I was initially asking how to add Gutenberg to a Custom Post Type but after some digging in the code I found it.
Your CPT declaration must have show_in_rest => true
and supports ‘editor’.
You can add ?classic-editor
at the end of the admin URL to switch to the standard editor, for example in order to access the Yoast Metaboxes.
For ACF, it’s already compatible. And pretty well integrated. Wonderful!
I’ve also found a filter to allow Post Types to have Gutenberg:
add_filter('gutenberg_can_edit_post_type', true, 'my_post_type_slug');
So for now I’m going to try to replace my ACF + Flexible “builder” with a full Gutenberg approach. Which me luck 🙂
Thanks Zac for the great course!