ACF file download not working, added screenshots

I am trying to use ACF to add files to be able to download. And I am using the following code:

<?php if( get_field('jesmond_breakfast') ):?>
  <a href="<?php the_field('jesmond_breakfast'); ?>" target="_blank"><strong>Brochure</strong></a>
<?php
endif;?>

Then I have this set up in ACF.

Read More

enter image description here
enter image description here

But for some reason, I am having no luck.

Can anyone see the issue?

Related posts

1 comment

  1.  <?php if( get_field('jesmond_breakfast') ):?>
      <a href="<?php the_field('jesmond_breakfast'); ?>" target="_blank"><strong>Brochure</strong></a>
    <?php
    endif;?>
    

    instead of you can store in variable after given in

    <?php if( get_field('jesmond_breakfast') ): 
    $link= the_field('jesmond_breakfast');?>
              <a href="<?php echo $link;  ?>" target="_blank"><strong>Brochure</strong></a>
            <?php
            endif;?>
    

Comments are closed.