I’ve created a simple ACF block for a call to action and have saved a reusable version of it in Gutenberg. From there, I want that reusable block to automatically be added to every new post created.
After doing some research, I implemented the following code:
Notice I’m using the ID of the reusable block (290). However, whenever I add a new post, I just get a blank version of the block. The following error comes up in the console:
Uncaught TypeError: can’t access property “buttons”, n is undefined – acf-input.min.js:4:8414
I’m assuming this means it can’t access the content? I previously had the block restricted to specific post types, but have removed that. I should also note that adding the reusable block within Gutenberg works just fine – it’s just getting it added via this template.