• Resolved darrcass

    (@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)
  • Thread Starter darrcass

    (@darrcass)

    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 5 years, 11 months ago by darrcass.
    Plugin Author Jeroen Schmit

    (@slimndap)

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

    Thread Starter darrcass

    (@darrcass)

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

    Thread Starter darrcass

    (@darrcass)

    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.

    Thread Starter darrcass

    (@darrcass)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Support for Block Editor’ is closed to new replies.