Home › Forums › Add-ons › Repeater Field › How to make File repeater › Reply To: How to make File repeater
Very close to what we need!! Thank you!
we have use this
<?php
if (have_rows('file_repeater')) {
while (have_rows('file_repeater')) {
the_row();
$file = get_sub_field('file_upload');
?>
<br>
<img style="width:18px; height:10px;" src="http://www.subshunter.com/wp-content/uploads/2016/01/br.png" />
<span><?php echo $title; ?></span>
<a href="<?php echo $file['url']; ?>">Download the Document</a>
<?php
}
}
?>
and we get http://prntscr.com/9wmchy
and we need to show the file name not the Download the Document!
how can we change that to shows the file name Title?
For example in this page we have 2 files
1 and we must get: http://prntscr.com/9wme2s
2: http://prntscr.com/9wmeqj
How can we do that?
Thank you very much again
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.