Is there a way to randomise a repeater order in a while loop?
I know you can do it with a foreach loop but i’m looking for a way to do it in a while loop. Just because of how the theme files are coded. Everytime I try to do the loop with foreach the theme files stop working, things become undeclared because everything inside the loop is using get_sub_field(‘variations’) instead of $row[‘variations].
I know you can randomise the_post() function in wordpress so i was wondering if something similar works for the_row()
No, there isn’t any way to get random rows using a while loop. You must get the entire repeater and then access values in the returned array instead of using get_sub_field()