Support

Account

Home Forums General Issues Layout breaks if field not entered Reply To: Layout breaks if field not entered

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