I have a group field named : parent,
and subfields: father, mother. i’m not sure how to show them on frontend with comma separated if both subfields are available.
please help me. currently i’m using this nonsense code:
<?php if( have_rows(‘parent’) ): ?>
<?php while( have_rows(‘parent’) ): the_row();
// Get sub field values.
$father = get_sub_field(‘father’);
$mother = get_sub_field(‘mother’);