InnerBlocks adds any block and saves, but the editor doesn’t show child blocks on reload

Turns out the parent block was locking the template. I added some code to lock InnerBlocks only when we a new child block is added. for (let i = 1; i <= parseInt(numChildren); i++) { defaultChildren.push( [“accordion/child”, { className: ‘accordion-‘ + i }, [[“core/paragraph”,{content:’Accordion ‘ + i,}]] ] ); } const onChangeNumChildren = (newNumChildren) => … Read more

wp:query not responding to new settings

In the block query settings, it has “inherit”:true. This means the rest of the parameters are ignored and instead the global query is used. You could consider setting inherit to false, or otherwise use filter hooks to change the query as needed, such as pre_get_posts.

how can I properly extend the gutenberg terms block?

It seems like you’re not using a build step to process your custom-terms-block.js. This means you cannot use JSX syntax. Instead, you should replace all instances of JSX with React.createElement(): edit: (props) => { const { terms } = props.attributes; // Fetch terms and their associated ACF brand_logo fields const [taxonomyTerms, error] = useEntityProp(“taxonomy”, “category”, … Read more

Align block editor

The issue of Gutenberg blocks aligning fully to the left in the editor, leaving no space between the text/images and the left side of the editor, can be caused by a few factors. Here are some potential causes and solutions: Theme or Plugin Conflict A conflict with your active theme or a plugin could lead … Read more