Home › Forums › ACF PRO › acf_add_local_field saving but not displaying in post › Reply To: acf_add_local_field saving but not displaying in post
Hi @iamhexcoder
I believe I’ve answered your question here: https://support.advancedcustomfields.com/forums/topic/acf_add_local_field-not-updating-on-save-when-auto-adding-fields/#post-41389. The problem is that the $_GET['post']
and $_POST['post_ID']
variables are not available on the front end. Also, the global $post
variable is not available on acf/init
hook, so you need to hook it to wp
for the front end.
I hope this helps 🙂
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.