Support

Account

Forum Replies Created

  • Yes, I’ve put print_r($value) and it returns the number of rows. Ther should be some way that return the array of the rows…. but I dont know how

  • 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

Viewing 2 posts - 1 through 2 (of 2 total)