Home › Forums › Add-ons › Repeater Field › PDF Attachment as Link › Reply To: PDF Attachment as Link
Hello James :-)!
Right it should be show on the Frontend. So i wanna try your Code.
Thats my code at the moment:
(I added your Code as a example)
// Wenn mindestens 1 Datensatz vorhanden ist
if( have_rows('stellen_ds_en' , 1779) ) {
echo '<table width="100%">';
while( have_rows('stellen_ds_en' , 1779)) : the_row();
// Bezeichnung aus Feld laden
$bezeichnung = get_sub_field('bezeichnung');
// Ort aus Feld laden
$ort = get_sub_field('ort');
//Here goes your Code?
if ( $file ):
?>
<a href="<?php echo $file['url']; ?>"><?php the_sub_field('bezeichnung'); ?></a>
// Anhang Text aus Feld laden
echo "<tr><td width='50%'>$bezeichnung</td><td width='50%'>$ort</td></tr>";
// 3 Felder ausgeben
endwhile;
echo '</table>';
}
?>
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.