Simple ACF Option Repeater

<?php if(get_field('main_menu', 'option')): ?> <?php while(has_sub_field('main_menu', 'option')): ?> <a class="home-links" href="<?php the_sub_field('page');?>"><?php the_sub_field('title');?></a> <?php endwhile; ?> <?php endif; ?>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.