Hi there,
I need to control the display of a field that lives insides a group only if there is data enter in that field. Here is I have but is not working:
<?php
$social_network = get_field('social_network');
?>
<?php if( $social_network ): ?>
<a href="<?php echo $social_network['facebook']; ?>">
<i class="bi bi-facebook"></i>
</a>
<?php endif; ?>
<?php if( !empty($social_network['facebook']) ): ?>