Support » Plugin: Theater for WordPress » Support for Block Editor

  • Resolved darrcass


    You can do this by adding one line to functions/wpt_setup.php. in the register_post_types() function, add to the first $post_type_args array (the one that starts on line 195) the line:

    ‘show_in_rest’ => true,

    That’s it. Done. Block Editor support. Will you please consider including this in your next update of the plugin?

    I also added ‘author’ to the ‘supports’ array so I can credit the person who wrote the movie description. That would be nice in an update, too.

Viewing 5 replies - 1 through 5 (of 5 total)
  • OK yeah, it’s way more complicated to support Block Editor. Everything works fine until I try to add dates to a production. Then it gets wacky.

    • This reply was modified 4 months, 3 weeks ago by  darrcass.
    Plugin Author Jeroen Schmit


    I will look into this for the next release.
    I assume you mean the Gutenberg editor?

    Yes. Gutenberg. They’re calling it the Block Editor as well.

    The problem with simply adding “‘show_in_rest’ => true,” to the args for the post type is that the block editor works just fine, but the AJAX for adding the dates gets screwed up and you can’t add events.

    That would be great if Gutenberg is supported in the next update. Thanks.

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