• Resolved anthonybarro

    (@anthonybarro)


    When creating a new custom post type, I can check the things I want enabled, like “comments”, “editor”, “title”, etc.

    How do I enable the standard (nowadays) Gutenberg editor?

    I want to use custom blocks within the Gutenberg editor inside my newly created custom post types via ACF Extended.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    You have to enable the show_in_rest setting in your Custom Post Type in order to enable the Gutenberg support. As explained in the register_post_type() documentation:

    show_in_rest
    (boolean) (optional) Whether to expose this post type in the REST API. Must be true to enable the Gutenberg editor.

    Default: false

    Hope it helps!

    Have a nice day!

    Regards.

    Thread Starter anthonybarro

    (@anthonybarro)

    Thank you, it works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Simple question: How do I activate the Gutenberg editor for a new post type?’ is closed to new replies.