Home › Forums › ACF PRO › get_fields() breaking after upgrade to ACF PRO on repeater field › Reply To: get_fields() breaking after upgrade to ACF PRO on repeater field
I am experiencing same issue.
get_fields( ID_OF_POST );
If there is a repeater field in the fields I am trying to get I get 2 warnings, and the field with that repeater field returns the number of items instead of the array of items like it should.
Here are the warnings:
array_keys() expects parameter 1 to be array, string given in /wp-content/plugins/advanced-custom-fields-pro/pro/fields/repeater.php on line 522
Invalid argument supplied for foreach() in /wp-content/plugins/advanced-custom-fields-pro/pro/fields/repeater.php on line 522
hopefully this gives more clarification.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.