Home › Forums › Backend Issues (wp-admin) › Sort repeater admin fields › Reply To: Sort repeater admin fields
i also would know if it is possible to auto order repeater fields at backend, based on a value inside that repeater (oder by a date-field for example)
at frontend i have no big problem. i do it like this:
foreach( $arr_merge as $key => $row ) {
$thedate = $row['termin_date'];
$column_id[ $key ] = strtotime($thedate);
}
array_multisort( $column_id, SORT_ASC, $arr_merge );
but at backend i dont know, how to do that.
if there where not may repeater rows, manually order is no big thing, but if you have about 10-100 repeater-rows, automatic order would be great. even if it would happen only after a save/update the post, not after add row.
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.