Add data attribute of post_id for Internal links
Add data attribute of post_id for Internal links
How to: Provide component with innerBlocks to WordPress Gutenberg’s save function?
How to diagnose wp-env environment problem
Add data attribute of post_id for Internal links
Social-Link block not loading html on page with custom theme
I gave up and went for a php solution. The code in the custom block uses and updates a meta field, then I use the ‘updated_post_meta’ hook to set the taxonomy term from the meta field. Before editing I use the ‘the_post’ hook to set the meta value from the taxonomy term. A bit clunky, … Read more
How can I block embeds and show an individual preview image per block?
Embedding Post Editor Into External Site
Stop JSON code from injecting into gutenburg classic block
How to add srcdoc attribute to YouTube oEmbed in Gutenberg oEmbed Block
Short Answer: When saving an attribute, always respect the attribute type. So if your attribute is of the array type, then save the value as an array, e.g. props.setAttributes( { innerContent: [ content ] } ). Longer Answer Your register_block_type() call is missing the editor_script parameter. See the block editor handbook for details, but basically, … Read more