Home › Forums › General Issues › Returning a URL instead of a post ID from a File field › Reply To: Returning a URL instead of a post ID from a File field
ACF only stores the ID of the field for the meta_key/meta_value. CF7 (or the add on your using) is directly accessing the meta value and not going through ACF to get the value.
In order to do this you’ll need to create your own shortcode to add here
[dynamichidden manual_url "CF7_get_post_var key='asp_manual_url'"]
instead of using the [dynamichidden]
add on. Or, alternately if this shortcode allows filtering so that you can filter the value used in order to get the file url from the ID. You’ll need to ask the authors of the dynamic text extension if the value can be filtered.
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.