Note that this will obviously use WordPress’s folder naming schemes so every month, it will be in a different folder (ie. uploads/2014/1, uploads/2014/2 etc)
I use the file upload fields for HD and SD versions of the videos.
Is this something easily achieved? I normally try to figure things out myself, however this ones got me scratching my head!
You could use this in combination with the get_field() function to:
1. Get the ACF value
2. If the value is an array or ID, load the URL
3. Use the function (in linked thread) to replace the URL with the PATH
4. echo the result of the function
Viewing 3 posts - 1 through 3 (of 3 total)
The topic ‘File Upload – echo absolute path rather than full URL’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users