Posted By

thesmu on 11/07/13


Tagged


Versions (?)

basic ACF repeater (old version)


 / Published in: PHP
 

ACF (VS3) repeater

  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  

You need to login to post a comment.