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.
Any suggestions as to what else may cause this?
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users