My goal is to add to WooCommerce /my-account
page a select input type.
The options of the select field will be controlled by ACF repeater in ACF options page, and will be inserted to wp_usermeta
table.
I palce d this code in functions.php file.
while ( have_rows('group_email') ) : the_row();
?>
<option>
<?php
echo the_sub_field('email_group_id');
?>
</option>
<?php
endwhile;
For some reason i get no results. If I manually write options I can see them and it works great. I am using ACF version 4.4.11 The repeater is not empty.
What can be the problem?