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’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.