Thank you so much for this topic. I’ve spent a week trying to figure this out and read lots of similar topics but this worked perfectly. thank you.
Kieran
Hi again John
I’ve figured the filename issue out. Many thanks for your initial answer as it’s worked perfectly.
Thanks again
Kieran
Thank you very much, John. Much appreciated. That works perfectly.
On another quick note (if you don’t mind). I’m also trying to display the filename instead of the ‘Download Report’ text, however, the method below is showing the full URL path. Any ideas?
<?php if( get_field('linkdownload') ) { ?>
<a class="news-download" target="_blank" href="<?php the_field('linkdownload'); ?>" >Download File: <?php the_field('linkdownload'); ?></a><br>
<?php } ?>