Home › Forums › Front-end Issues › Struggling with saving ACF data on new post › Reply To: Struggling with saving ACF data on new post
So, there are tons of Google results on this and I finally found one that actually works.
Trying to get the field keys programatically is a waste.
Simply go into the Custom Fields back end, scroll down the field options, check the Show Field Keys box and copy and paste the keys into the code.
I’m sure there’s some reason this is kind of confusing, but the fact that this simple thing isn’t in the documentation is a bit incomprehensible. Your documentation says use the field keys, great, it doesn’t say HOW TO GET THEM….
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.