Support

Account

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