/ Published in: PHP
ACF (VS3) repeater
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if(get_field('home_page_slider_images')) { while(the_repeater_field('home_page_slider_images')) { echo '<img src="' . get_sub_field('slider_image') . '" alt="' . get_the_title(get_sub_field('slider_image')) . '" title="' . get_the_title(get_sub_field('slider_image')) . '"/>'; } } ?>