Support

Account

Home Forums Backend Issues (wp-admin) Sort Repeater in BACK end, Where Data is Entered Reply To: Sort Repeater in BACK end, Where Data is Entered

  • I figured it out. I was trying to draw the front-end field name. I needed to go into SQL and get the correct row used there.

    add_filter('acf/load_value/name=employee_schedule', 'my_acf_load_value', 10, 3); //repeater_name
    function my_acf_load_value( $rows)
    {
     foreach( $rows as $key => $row ) {
      $column_id[ $key ] = $row['field_5625599634aa1'];
     }
     
     array_multisort( $column_id, SORT_ASC, $rows );
     return $rows;
    }