Home › Forums › General Issues › File Upload – echo absolute path rather than full URL › Reply To: File Upload – echo absolute path rather than full URL
Hi @deset
This thread contains some code to replace the URL with the PATH:
http://wordpress.org/support/topic/full-path-to-attachment-images
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
Thanks
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.