I created a File Custom Field in Wordpress using ACF plugin called: pdf
Now I need to print this field in the frontend.
I'm almost there using this line of code in my function.php file
echo the_field('pdf');
Problem is that I get several values printed:
3491, , audiometria-1, , , application/pdf, http://example/wp-content/uploads/2017/02/audiometria-1.pdf
I guess this an object or array since it is comma separated.
I need to echo just the last value which the url of the file.
What am I missing here?
I searched in the documentation page for this plugin but I see no way to add parameters to the_field function: https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/