Sure, but how do I un-mark it? I see no option .
Thanks for pointing me in the right direction. I have been switching settings before posting this topic. The field was actually configured to output url and not an array.
Your solution $file['horse_official_document']['filename']
works fine now. Thanks so much!!!
Hi Daniel,
Thanks for your reply. Yes I’m using a File field (subfield) in my Repeater field.
When I add [‘filename’] it returns ‘h’ as file name?
$rows = get_field('horse_official_documents');
if($rows)
{
foreach($rows as $row)
{
echo '<div><a href="'. $row['horse_official_document'] .'" target="_blank">' . $row['horse_official_document']['filename'] . '</a></div>';
}
}
I want the output to be:
<a href="https://www.breeders.site/wp-content/uploads/2020/01/score-mares-01.jpg">score-mares-01.jpg</a>
What am I missing?