Social Media Repeater
Mon Aug 29 2022 10:25:31 GMT+0000 (Coordinated Universal Time)
Saved by
@hamzahanif192
<?php if( have_rows('social_media', 'option') ): ?>
<ul class="social-media">
<?php while( have_rows('social_media', 'option') ): the_row();
$socialIcon = get_sub_field('icon' , 'option');
$socialLink = get_sub_field('link' , 'option');
?>
<li>
<a href="<?php echo $socialLink; ?>">
<img src="<?php echo $socialIcon; ?>">
</a>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
content_copyCOPY
Comments