Alexis Queen Show menu Show searchbar

Excuse the use of tons of different block styles here, this post also serves as an experiment with the different blocks and layout options.

Alexis Queen, 2017

Although quite a few people are still hesitant about it, the new Gutenberg editor is here to stay. Or it will be, when they move it into core.

So what can Gutenberg really do that the old editor can't? Well, for starters, this blog post (and all other pages on my site) are written in it. This is the first WordPress site I've built in the last couple of years where I haven't wrestled with metaboxes. I haven't even bothered with a custom template for the front page or anywhere else, as the block format removes the need for most of it.

Okay, so what can't Gutenberg do at the moment? Currently, there's no support for multi-column layouts (outside of a basic Text Columns block), although that is something they are looking into in the future, alongside nested blocks. Drag-and-drop is also not available yet, and the editor has the occasional glitch or two. Ideally, there should be more settings exposed in add_theme_support too as right now what theme authors can enable/disable is limited.

Custom Post Types

Currently custom post types do work with Gutenberg, on one condition – you need to enable REST support for the post type.

add_action('init', function () {
    // Book CPT.
    register_post_type('book', [
      'label'        => "Books",
      'public'       => true,
      'show_in_rest' => true
    ]);
});

This is a cover block.
Lorem ipsum dolor sit amet.
Links can be put here too!