Home › Forums › General Issues › Shortcode as ACF value › Reply To: Shortcode as ACF value
I am assuming that you want the value of this field to be based on the value of another field?
You might be able to create an acf/prepare_field filter and set the value of the field based on the shortcode. But this would only work after the post was saved.
Or you could use an acf/save_post action to update the value of the field by running the shortcode. Again, it would only show the updated value after the post is saved.
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.