I’m aware there’s an obvious bug there in using the incorrect variable name when passing to the acf_add_local_field_group function. That’s not the reason it’s not working, that’s just me copypasting from outside a wrapper function and then inside the wrapper function. I AM passing the correct array so ignore that.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users