Elementor with Advanced Custom Fields repeater

<?php if(get_field('reapeater_field_name')): ?> <?php while(has_sub_field('reapeater_field_name')): ?> <?php $slideId = get_sub_field('slide_single_slide'); echo do_shortcode('[elementor-template id="'.$slideId.'"]'); ?> <?php endwhile; ?> <?php endif; ?>
Using Elementor with ACF's repeater. The single field I'm using is the Object ID field type.

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.