Home › Forums › Add-ons › Repeater Field › Filter Sort Repeater Field in Backend › Reply To: Filter Sort Repeater Field in Backend
Thanks for answer… ACF’ support commented me about array_reverse, too. Thye give me this code:
function my_acf_load_value( $value, $post_id, $field ) {
// bail early if no value
if( empty($value) ) {
return $value;
}
// return
return array_reverse($value);
}
add_filter(‘acf/load_value/name=my_repeater_field_name’, ‘my_acf_load_value’, 10, 3);
But appears the next error:
Warning: array_reverse() expects parameter 1 to be array, string given in C:\xampp\htdocs\new_useem_wp\wp-content\themes\useem\functions.php on line 203
In line 203:
return array_reverse($value);
What could be happening?
Thanks
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.