1

how can I get access to sub of sub field in acf php? for example I have filed of "team" and subfield of "name"

company->team members -> name

mustafa-hsz
  • 120
  • 8

1 Answers1

0

As simple as that:

$data = get_field('company', $post->ID);
echo esc_html($data['team_members']['name']);
Damocles
  • 1,287
  • 1
  • 7
  • 9