In Beaver Builder loop syntax, you can do this by [wpbb post:acf type='number' name='group_field_name_sub_field_name']
So basically you can just give the field name with an _ between them. L&L could pick whatever delimiter y’all wanted, but just being able to do <Field group_field_name_sub_field_name /> would be a dream.
Whaaat! Well that’s neat. Added it to the docs but I haven’t tested it myself so let me know if my understanding of how it works is correct. Are there any other fields that work this way?
Looks like this shortcut of combining parent and child field names with _ is specific to the Group field type.
The Group field uses both the parent and child field names when saving and loading values. For example, a Group field named ‘hero’ with a sub field named ‘image’ will be saved to the database using the meta name ‘hero_image’.
(It might have been better to use double underscores __ to avoid any possible conflict with parent/child fields that include _ in them already. For example, a field called book_author might conflict with a parent field called book with child field author.)
But the Field tag itself has a shortcut for accessing a subfield. It can be seen in some of the field type examples, like:
This shortcut syntax wouldn’t work for repeater or flexible content, because those field types can have more than one child field. Theoretically we could add a field_index attribute to make that possible.
I was looking at my old Topics and I saw this one. @benjamin and for anyone’s general knowledge, you can do it for repeaters too if you specify the row. So like <Field repeater_field_name_0_sub_field_name /> where the 0 is the index of the row you’re pulling (with 0 being the first)