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.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.