<?php
$acfgroup = get_field('field_name');
$group_judge = array_filter($acfgroup);
?>
<?php if(!empty($group_judge)): ?>
<?php if( have_rows('field_name') ): ?>
<?php while( have_rows('field_name') ): the_row(); ?>
<div class="faq">
<?php if( get_sub_field('sub_field_name01') ):?>
<h3><?php the_sub_field('sub_field_name01'); ?></h3>
<?php endif; ?>
<?php if( get_sub_field('sub_field_name02') ):?>
<p><?php the_sub_field('sub_field_name02'); ?></p>
<?php endif; ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php endif; ?>