Home › Forums › General Issues › How to get field data from a group inside a group › Reply To: How to get field data from a group inside a group
All good, worked it out by putting it through the loop then accessing the sub_fields!
<?php
if( have_rows('album_group') ):
while( have_rows('album_group') ): the_row();
$cp_album_info = get_sub_field('album_information');
$cp_album_music = get_sub_field('album_music_g');
$cp_album_name = get_sub_field('campaign_album_name');
$cp_album_links = get_sub_field('album_links');
...
?>
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.