<ul class=”foci”>
<?php while( have_rows(‘focus_areas’) ) : the_row(); ?>
<li class=”focus”>
<?php echo wp_get_attachment_image( get_sub_field(‘icon’), ‘thumbnail-medium’, false, array(‘class’ =>’focus-icon’, ‘alt’ => get_sub_field(‘name’) ) ); ?>
<h3 class=”focus-name”><?php the_sub_field(‘name’); ?></h3>
<div class=”focus-description”><?php the_sub_field(‘description’); ?></div>
<?php endwhile; wp_reset_postdata(); ?>
I’m trying to add a sub field for link so then I can click on an icon that will direct me to an external link. I tried adding this code but it didn’t work
<?php the_sub_field(‘link’); ?>