Support

Account

Home Forums Add-ons Repeater Field Sort repeater field by date sub field Reply To: Sort repeater field by date sub field

  • Hi @moofin

    Could you please tell me how did you get the other subfields? Could you please share the code?

    Keep in mind that with the get_field() function instead of have_rows() function, you need to get the subfields using the field name as the array key like this:

    foreach( $repeater  as $row ){
        echo $row['subfield_name'];
    }

    Also, please make sure that you’ve set an empty array for your $column_id variable like this:

    $column_id = array();

    I hope this helps.