Support

Account

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.