Hiding empty ACF sub fields
Advanced Custom Fields is a WordPress plugin which allows you to add extra content fields to your WordPress edit screens. These extra content fields are more commonly referred to as Custom Fields and can allow you to build website’s faster and educate your client’s quicker. Here is the code for Hiding empty ACF sub fields.
<?php while(the_repeater_field('details')): ?>
<?php if(get_sub_field('fax')): ?>
<i class="fa fa-fax" aria-hidden="true"></i><?php the_sub_field('fax'); ?><br/>
<?php endif; ?>
<?php endwhile; ?>