ACF Group filelds

Hi!

I have created a Group field with ACF, and then created a few others inside it. It doesn’t seem I can access those fields by standard dynamic data such as {{dc:acf:post_field field="service_short_description"}}

Let’s say the group is called “Descriptions”. Would it be possible to access those fields inside it?

Thanks!

Hey Misho,

Thanks for reaching out!

Let say you have an ACF Group Field called “Description” and sub-field ( group1, group2). Then to access the data from the group1 and group2 fields, please follow the steps below.

  • You need to create a Row with Looper Provider using the Dynamic content {{dc:acf:post_field field="service_short_description"}}.
  • Add a text element and set it as Looper Consumer. Then to access the sub-field you need to use this dynamic content {{dc:looper:field key="group1"}} or {{dc:looper:field key="group2"}}. The group1 and group2 is the field name in your ACF sub-field.

Hope that helps.

2 Likes

Ah, thanks!

I wouldn’t expect the Group field to act like the Repeater field. I assumed it was only for visually organizing fields in the backend.
Thanks again!

Hi Misho,

You’re welcome! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.