Support

Account

Home Forums Add-ons Repeater Field Repeater file field Reply To: Repeater file field

  • 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?