File_Field Array returns File ID, Not URL
-
I am using the template for file uploads you have listed in the documentation and so far the only thing I can get the array to return is the ID number for the PDF file and the output is not a link, just the ID number. I’m using ACF Pro and the “download” and “link” field names are conditional where I have the user choose either a website link or a file download.
[loop type="curriculum" taxonomy="grade_level" value="kindergarten" compare="and" taxonomy_2="curriculum_category" value_2="math-2" list="true"] [if field="link"]<a href="[field link]" target="_blank"><i class="fa [field icon]"></i> [field title]</a> [else] [array download] [field title] [field description] <a href="[field url]" download>Download Link</a> [/array] [/if] [/loop]
Any help is greatly appreciated.
Thanks – Jerrad
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘File_Field Array returns File ID, Not URL’ is closed to new replies.