Creating a custom block that stores post meta – WordPress Developer Blog
Learn how to create a custom dynamic block that saves information to custom post_meta and creates a one-to-one experience in both the block editor and on the front end. You will see an example of how to to use @wordpress/create-block package to scaffold a block.
Enable, Read, and Write Post Meta in WordPress Gutenberg
The WordPress block editor (a.k.a. Gutenberg) communicates with the database via the WordPress REST API. We can read and write post meta from within the Gutenberg editor after we enable the specific post meta field in the WordPress REST API.
How to Add Beautiful Gradient Presets to the Gutenberg Block Editor — Rich Tabor
Love ‘em or hate ‘em, gradients are here to stay. Especially now, as the WordPress block editor has a default mechanism to apply gradient styles throughout the editing experience. Out of the box, I don’t find the default gradient application experience particularly meaningful, as these presets are an assortment of trendy gradient styles presets. But …
How to Restrict Blocks to Specific Page Templates in the WordPress Gutenberg Editor
Note: The link to the full example is here. It’s a small plugin so feel free to download it, install it, and use it as you follow along with this guide. Why is this necessary? The Gutenberg editor in WordPress allows infinite possibilities for developers to provide custom block solutions for content editors. At some point…