Support

Account

Home Forums Add-ons Repeater Field Randomizing/Shuffling Repeater with Advanced Loop Reply To: Randomizing/Shuffling Repeater with Advanced Loop

  • Hi @rkeefer

    I believe you can use the acf/load_value hook to shuffle the returned data like this:

    function my_acf_load_value3( $value, $post_id, $field )
    {
        shuffle($value);
        return $value;
    }
    add_filter('acf/load_value/name=repeater_field_name', 'my_acf_load_value3', 10, 3);

    Where “repeater_field_name” is the name of your repeater.

    I hope this helps 🙂