Thank you John, using add_row has the same result, one repeater row being added. I’m using the exact same examples as above except add_row
instead of update_field
I’m thinking it has something to do with my foreach loop trying to loop through the fieldsets.. but I can’t pin it down.
Awesome, that worked great!
Thank you!
Thanks Jonathan, now I’m using the following. It allows logged in users to see but still every logged in user rather than the specified in associated_users. Any ideas?
<?php if ( is_user_logged_in() ) { $userID = (int)get_field('associated_users'); $current_user = wp_get_current_user(); if ($current_user->$userID == 0 ) { ?>