This is a code example to show how to display post meta in the block editor.
- Clone the code, cd into the directory, then run
npm install && npm run build
. - Go into
index.php
, and adapt the meta key inwpdc_post_meta_example_block_render
to your project. - Activate the plugin, and add a
WPDC - Post Meta Block Example
block to a single post.
I'd be happy to teach you custom block development in the Block Development Bootcamp.