I’m trying to use a field key for a field in a group with the acf/save_post action to set/update a post title. It was working as documented for a simple text field, but I’m not able to figure out how to reference a grouped field by its key.
I tried to reference the sub field of the group directly, and tried to reference the group then the sub field (i.e. [‘acf’][‘field_123456789a’]_[‘field123456789b’]), but it didn’t seem to work. Is there a syntax for this, or have I just got it all wrong?
before (this was working when it was just a text field)
after (not working after I put the text field into a group)
I doubt it’s as easy as a typo, but…
Check the real code and make sure that underscore isn’t actually there between the two bracketed key refernces, so: