I used this in an older website and worked just fine. So I’m puzzled about this:
Basically I created a field group associated to a category. That category is used with a post that contains the footer links. and righ now the link is not showing up at all.
Here’s the code I’m using:
<?php
if( get_field('link_instagram')): ?>
<a target="_blank" rel="nofollow noopener" href="<?php the_field('link_instagram'); ?>" class="d-flex justify-content-center align-items-center mx-4 mb-2 custom-mx-1" aria-label="***">
<img src="<?php bloginfo('template_url'); ?>/img/redes-instagram.svg" alt="">
</a>
<?php endif; ?>