Home › Forums › General Issues › Problem using function acf_add_local_field › Reply To: Problem using function acf_add_local_field
I solved the problem.
Fields were added through the WP interface.
Later there was a need to add fields programmatically.
They were added, but those that were previously not displayed.
How I solved the problem:
Through tools I generated PHP code.
Copied the array of fields from there and added it to my code – it worked
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.