In a custom plugin, i display the content from a post in an editor like this

wp_editor( $content, $editor_id );

but when the content is done with gutenberg , i want to display the gutenberg editor and not the classic editor. How can i do this ? Thanks Stéphane

1 Answer 1


I'm not sure i completely understand what you want to do... you want to use the block editor on an admin page of your page, but then use it to edit the content of an existing post?

I'm not quite sure if this can work as you intended. However, there IS an experimental way to include a seperate instance of the block editor on an admin page. Please use this tutorial on the wordpress developer portal to create this.

Happy Coding!

  • Thanks , this is probably the documentation i was looking for. I'm buiding a translation tool Falang for WordPress and for post/pages translation i display side by side the original and the translated. For gutenberg editor it was working but only with the classic editor display.
    – sbouey
    Feb 16, 2023 at 10:28
  • This tutorial don't seem to work , i was trying for testing to use a block editor in a settings page but other user has the same problem.
    – sbouey
    Feb 16, 2023 at 17:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.