Hello,
I’m noticing into a weird issue with get_field() on ACF 4.4.3. This issue is not present in ACF 5.x.
get_field() on a repeater (with the $format_value option = false) returns an INTEGER instead of an array of data.
See this gist for a comparison between ACF4 and ACF5: https://gist.github.com/mgibbs189/c2daea205ea9b99c6993
Notice how the integer corresponds with the number of repeater rows.
Is anyone else able to reproduce the issue? Perhaps this is a bug with ACF4?
Thanks in advance
Hi @mgibbs189
It seems a possible bug in older version of ACF.. it’s possible elliot has just missed updating this in the same push as acf pro was updated or something 🙂
I’ll assign @elliot so he’s notified of this. Thank you for bringing it up!
Thanks, @jonathan! Please keep me posted.
@jonathan @elliot Hey guys, any progress with this one?
Thanks in advance
Hi @mgibbs189
Sorry for the late reply – long story.
It is intended that the repeater field reruns an array of unformulated values. THe free version will soon receive an update to v5 which will match the newer functionality.