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;
}
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.