How can I loop through my custom post types, where I have a select within a repeater field? I would like to collect the selected options and listing.
My_CPT (1) / Location (repeater field) / Country select field (selected: Italy)
My_CPT (2) / Location (repeater field) / Country select field (selected: Germany)
My_CPT (3) / Location (repeater field) / Country select field (selected: UK)
where Country contains all countries of the world.
Expected result:
<select>
<option>Italy</option>
<option>Germany</option>
<option>UK</option>
</select>