I’ve managed to solve this: https://gist.github.com/yratof/9abc805a64c1504ec2b282aaa9a3beaa
This script gives you an idea of how to hook into the layouts to remove & add at the bottom – working on a nice way of displaying this, but this works for now
Still persistent in latest version, it seems that the logic of looping within a loop is mental.
Putting the_row_index();
in an alert within the second flex content shows how many times it’s looping through, as it’s echoing out 0, 1, 0, 1, 0, 2, 1, 3, 1, 4
etc
Taking a look at your code john, I can’t seem to get the subfields to pass through this argument – when using acf_get_filed
, layouts drop all sub fields and the end result is no layout options.
Did you find a way for this to work?
I’ve got a bunch of URLs being populated where my gallery should be, do they have to be ID’s? Is there a way of getting images in the gallery without ID’s?