Home › Forums › Bug Reports › File URL is showing File ID instead › Reply To: File URL is showing File ID instead
How are you pulling the field into the page? With a get_field or the_field call? Using something to help you do it?
For an ACF field that gives you options on how to return a value like file and image, what gets stored in the database meta key is usually the ID. The choice on how you return the info only gets applied when using a the_field or get_field ACF call. So if you’re using something that is pulling custom fields with get_post_meta instead, that’s likely why you’re seeing the issue.
Other times, I have seen ACF return a different value than what is selected before but usually toggling a different selection and saving then reselecting the alternative return value I want corrects it.
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!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.