basic ACF repeater (old version)


/ Published in: PHP
Save to your folder(s)

ACF (VS3) repeater


Copy this code and paste it in your HTML
  1. <?php
  2. if(get_field('home_page_slider_images'))
  3. {
  4. while(the_repeater_field('home_page_slider_images'))
  5. {
  6. 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')) . '"/>';
  7. }
  8. }
  9. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.