Thanks to Toms reply I took a closer look again with fresh eyes and saw that I wrote columns: '2'
instead of columns: 2
. I also added the linkTo: 'media'
attribute and rearranged the code to follow documentation (passing BlockProps to innerBlocksProps – I edited the original code post to reflect that).
Related Posts:
- Validation error: Extending Gutenberg gallery block
- WordPress Block Variation for Gallery Columns
- How to get Gutenberg Gallery Block to output thumbnail images?
- WordPress-gutenberg – Block validation: Expected text
- How Do I Prevent An Image From Automatically Adjusting In Guttenberg Block Gallery?
- Custom block Block Validation failure w/ deprecation declared
- Custom Gallery Block – Uncaught TypeError: setAttributes is not a function
- Are there ways to make the Gutenberg editor wider? And the HTML-block higher?
- Blocks: set a default value for a TextControl
- Is there a list / reference for all current native WordPress blocks?
- Setting default font family with theme.json
- (Gutenberg Block Editor) Using editor.BlockEdit filter, need to alter html/ CSS class of BlockEdit Component
- Extending Gutenberg group block: How to properly combine multiple attributes?
- Required (mandatory) Gutenberg block
- Add classname to Gutenberg block wrapper in the editor?
- How to develop custom blocks without triggering validation errors
- get selected categories or tags (using javascript) in GutenBerg?
- Help with using getBlockIndex
- Gutenberg blocks – processing server data within a block
- How to link Gutenberg Gallery images To Media file automatically?
- Best practices for CPT without using an editor [closed]
- Custom Gutenberg block is not showing up in inserter dialog
- Your site doesn’t include support for the block… after registering a block
- Remove a component fill from a Block Editor panel
- How to wrap the Gutenberg editor in a custom React component?
- Proper way to reload or update getEntityRecords state
- Cannot embed YouTube video
- Add a button to the toolbar of an existing Gutenberg block
- JSON File in Gutenberg
- Show date post published in Gutenberg component
- Adding an html wrapper to a custom Block Pattern
- How to add a class to the element in a custom Gutenberg block
- Gutenberg: How to check if a block is used in a paginated post?
- Editor API Endpoint or Data Store That Provides a List of Meta Fields for Post Types
- Specify exact parent child relationship between two blocks
- Using custom Entities to retrieve external data in the Block Editor
- How can I remove a button from the paragraph block toolbar?
- Align Group blocks left or right
- Unable to override MediaPlaceholder component
- Run the edit function of parent block when something changes in InnerBlocks
- do_blocks does not include its CSS
- Track Block Pattern Insertion Within the Block Editor
- block variations registration in PHP
- How to add screen reader text to links inserted in the block editor?
- Auto synchronize saving of custom block editor entities
- Store data from nested block of gutenberg
- Output content of post excerpt into Innerblocks within Gutenberg block
- How to add a link in a translation in gutenberg
- component does not render in block save
- Adding block programmatically to InnerBlocks
- Filter root element of tag cloud block
- How `window.wp.oldEditor` is being set in the editor?
- Don’t expand “Most Used” accordion item when adding new block
- Is it possible (safe) to create custom blocks using ES Next format?
- How do i get the link to a block?
- Dequeue Gutenburg Block Library CSS (‘wp-block-library’) in Admin
- Custom Block – save.js function not saving attributes
- Working with external library in gutenberg block
- Download Image from URL and Create a new Folder in wp-contents and save them there
- Using full site editing, can I edit just one specific post / page to be unique?
- Detect selected block pattern from a specific Pattern category
- How to add a message when post category is empty (the category have no published posts)?
- Add javascript file to a block pattern
- Block editor not recognizing markdown
- How to create Gutenberg patterns and patterns categories based on CPT posts and CPT terms?
- Gutenberg Block: Query for posts with blocks and sort by attributes
- How to Disable “Block Recovery” for HTML Blocks in Gutenberg
- Block error: post_taxs_obj is not a valid property of Object
- How to get the Gutenberg image block to show new Media Library listing
- useSelect in event callback – not retrieving value on time
- How to Batch Convert Gutenberg post to Classic post?
- How to create pre-designed page layouts for Gutenberg?
- Making custom meta box required (with error message if not filled in) on Gutenberg
- Can anyone explain why setting a block attributes source to a data-attribute doesn’t work?
- How to: Provide component with innerBlocks to WordPress Gutenberg’s save function?
- How can I display instagram block with parse_block?
- Do not wrap custom block in an additional DIV but instead use only the JSX I provide
- Line break in Gutenberg post title?
- Basic Block Usage Help on WordPress
- Is there an easy way to remove the data-preserver-spaces span from blocks?
- How to Stop Gutenberg From Adding Classic Block
- How to increase width of code block in WordPress blog?
- Video, embed, html block usage out of the_content
- applyformat in gutenberg doesnt work and no errors
- Why does Gutenberg adds 4 around blocks? And how to change this?
- admin_notices not shown
- Have parent block’s isSelected be true if an innerblock is selected?
- How can I add the option to format to list in RichTextToolbarButton?
- Layout Settings in the new Gutenberg editor
- How to get blocks with same heigh in columns?
- Gutenberg: Issue trying to commit locally
- Change Featured image location from side to normal using react (gutenberg)
- Remove placeholder from core/image in InnerBlocks template
- Gutenberg block not displaying prop values
- ACF InnerBlocks breaks css grid, How can we add classes to allowedblocks (WordPress Gutenberg)
- How to disable block directory?
- Display notice in block editor after wp_insert_post_data hook
- Gutenberg Block Deprecation – Handling old viewScript and styles
- Resaving posts to update static blocks
- How to add a tooltip for MediaReplaceFlow from @wordpress/block-editor