• Resolved VFHwebdev

    (@vfhwebdev)


    I’m trying to test out the Gutenberg editor to get ready for WordPress 5.0. When I install the Gutenberg plugin, my regular posts and pages have the new editor applied. But post types created with CPTUI don’t.

    And I don’t see an option to turn it on when editing post types with CPTUI. Am I missing something?

    Is there a way to test out Gutenberg with my custom post types?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If you changed the “Show In REST” setting to false when you were creating your post types, you’ll want to change that back to true. You’ll also want to make sure any taxonomies you register also leave that as true. We have found that that’s a primary setting needed to have it work with Gutenberg. Also because of that detail, we’ve changed the default to true for new post types in 1.6.0, and plan to for new taxonomies in another release.

    Thread Starter VFHwebdev

    (@vfhwebdev)

    Setting “Show in REST API” to true doesn’t seem to make a difference on my existing post types.But it does make new post types I create use Gutenberg. Is that expected?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I would personally be expecting it to work for all of them. I do think I’ve seen behavior where you can currently choose which editor type to use. When looking at the list of posts in the given post type, does it offer the option when hovering?

    Thread Starter VFHwebdev

    (@vfhwebdev)

    No, I just get an “edit” link and that opens the classic editor.

    Thread Starter VFHwebdev

    (@vfhwebdev)

    Oh, I think I figured it out. This post type was defined in CPT UI AND in functions.php. So editing it CPT UI wasn’t having any effect.

    Appreciate all the help. Sorry for the false error report.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    No worries. Not the first time that that mistake has been made. 😀

    As a quick explanation, much like CSS, the last one gets used. While not that much later, themes’ functions.php files get loaded after plugins, thus in the grand list of post types to be registered, the functions.php arguments got used.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Does CPTUI work with Gutenberg plugin?’ is closed to new replies.