Support » Developing with WordPress » Add default editable post content to custom post type

  • I have created a custom post type, and I want that when the user creates a new post, a new post with default editable blocks will be created and the user should be able to edit them via the Gutenberg editor

    How can I achieve it?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can add Gutenberg support on custom post type by adding the following code in your CPT code.

    'show_in_rest' => true,

    'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )

    To be more clear about this, you can see this screenshot.

    • This reply was modified 1 week, 5 days ago by Ahmed Imran.
    Thread Starter arar1

    (@arar1)

    @ahmedimran That’s not what I’m looking for, I have already added the custom type I want it to have a default content which will be editable from the FSE (full site editor)

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.