Gutenberg

From 2.0.3

Declare blocks

Edit config/packages/wordpress.yaml

To use block preview image feature, save block preview images as /uploads/blocks/{block-name}.png

Use blocks

Include blocks in template from loop

Please note that {{ post.content|raw }} will also display blocks html but for performance reasons, use post.blocks object

Access block data and attributes

Last updated

Was this helpful?