Support

Account

Home Forums Add-ons Repeater Field Show image file-name only in admin/backend Reply To: Show image file-name only in admin/backend

  • Hi Keith,

    Thank you very much for your quick help.

    I put the following code in the message field:

    <?php
    global $my_row_number;
    if ( !$my_row_number ) { $my_row_number = 0; }
    $rows = get_field('allgemein_mitglied');
    $specific_row = $rows[$my_row_number];
    $sub_field_value = $specific_row['allgemein_profilbild'];
    echo basename($sub_field_value['url']); // echos *just* the filename for the image
    $my_row_number++;
    ?>

    After updating, however, the field changes to a “one-line text field”. Unfortunately, the desired effect does not work.