Support

Account

Home Forums Front-end Issues File Field

Helping

File Field

  • Good day!

    So i uploaded a file and i want it to be downloadable via front end, I copied the code on your file field resource file but nothing happens, how can i achieve this?

    Thanks in advance!

  • Hi @gerah,

    First, specify the return value for the file field as the ‘File URL’ from the field group edit screen, then use then use the following code on the front-end to create a download link for the uploaded file:

    <a href="<?php the_field('field_name'); ?>" >Download File</a>

    For more information on this, have a look at: http://www.advancedcustomfields.com/resources/file/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.