Home › Forums › ACF PRO › ACF Block vs. field_type: group – template not working › Reply To: ACF Block vs. field_type: group – template not working
Solved: Leaving this up if anybody else has this same issue in the future. It was just me being stupid though, so not really likely to be of use for others to be fair.
I had not checked how the group field works and how to reference sub-fields in general, so I assumed I had to do some sub-array shenanigans. The solution turned out to just be the standard notation for referencing those values.
get_field('group_name_subfield_name')
to get the field directly without having to get the field group first with an array of subfields
then to set the default value in a parent block using InnerBlocks it’s just that same key 'group_name_subfied_name' => {value}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.