Home › Forums › ACF PRO › Export / import results in wrong keys? › Reply To: Export / import results in wrong keys?
Hmm, that looks indeed like the same problem.
But using the field id is also not a great solution because they are also different in every environment. If they would be the same across every environment (dev, staging, production), because the field was editable for example, that would be less annoying. Right now I have a file where I define all constants based on the environment to map the field key. But I actually hate doing that 🙁
So, the text above hasn’t actually anything to do with the issue, but I think it explains why I don’t want to use the field id in get_field, for every field. So I hope it is possible to fix it in another way. It is particularly strange that it works after you update the post. So the relationship of the fields is still saved somewhere.
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.