When to use block patterns over nested blocks?
When to use block patterns over nested blocks?
When to use block patterns over nested blocks?
WordPress Gutenberg Signal on Block Alignment Change
Extend the “Convert to Blocks” feature to add additional functionality
Is it possible to add the Gutenberg block editor to a custom taxonomy?
HTMLCollection not counting right in editor? / for loop not working on elements in DOM
I’ve currently “solved” this by backfilling with empty divs: $array_chunks = array_chunk($array_of_posts, 3); foreach($array_chunks as $posts) { echo ‘<div class=”wp-block-columns”>’; foreach($posts as $post) { echo ‘<div class=”wp-block-column”>’; // entry echo ‘</div>’; for ($i = 0; $i < ( 3 – count($posts)); $i++) { echo ‘<div class=”wp-block-column”>’; echo ‘</div>’; } } echo ‘</div>’; } But that … Read more
That’s not how templates work. A template is the initial block layout, a starting point. Changing the template won’t do anything because the original template was used to create blocks and those blocks have already been created. Think about it, if it worked the way you thought it did, adding or removing from the template … Read more
Gutenberg block breaks when showing new data
…as I said I was lost in a glass of water. Here’s how I solved the problem in the situation described above (maybe it could help to newby React guys like me, but maybe some experts could provide a better solution): const ParentItem = ({ state, setState }) => { return ( <PanelBody title={__(“Parent item”, … Read more
After some time reading the Editor Documentation I found the proper solution. This is how you can listen to changes and get the id of the Parent Combobox select in the WP Editor: wp.data.subscribe( function () { var newParent = wp.data.select(‘core/editor’).getEditedPostAttribute(‘parent’); console.log(newParent); } ); wp.data.subscribe is called every single time a change occurs in the … Read more