Support

Account

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');
    
      ...
    
     ?>