How to get repeater data to be used as a select? - ACF Support

PHOTO EMBED

Tue Mar 23 2021 17:18:57 GMT+0000 (Coordinated Universal Time)

Saved by @bl41n3y #php

if (have_rows('your-repeater')) {
  ?>
    <select>
      <?php 
        while (have_rows('your-repeater')) {
          the_row();
          ?><option value="<?php the_sub_field('your-sub-field'); ?>"><?php the_sub_field('your-sub-field'); ?></option><?php 
        }
      ?>
    </select>
  <?php 
}
content_copyCOPY

https://support.advancedcustomfields.com/forums/topic/how-to-get-repeater-data-to-be-used-as-a-select/