I understand that you have to enable the REST API in order to use the Gutenberg block editor, because Gutenberg relies on it; however, I want to use the Classic Editor for a custom post type and still use the REST API. Is there another way to disable Gutenberg?
I am aware that setting show_in_rest
to true
in my register_post_type()
function enables the REST API, but it also enables Gutenberg when I do.
Any suggestions are greatly appreciated.
show_in_rest
is set tofalse
it is disabled. You should be able to disable the block editor when registering your post type without needing to mentionshow_in_rest
. I did notice your registration code is missing from your question though, I assume you've addededitor
in the supports section if you're seeing this behaviour?