Note the option to ‘allow_custom’ and ‘save_custom’ values is set to 1 or true (I tried both). However, after I add a a new value and save the page its on, the value is not available as an option when I create a new page.
However, when this field is created manually in Advanced Custom Fields settings, it does show saved values/options.
Any idea why its not saving when added with PHP above?
are there any news regarding this. I just stumbled upon the same problem on one of our site. If the fields are registered via the backend, the custom values are available on new posts. When registering the field via php, custom values only are available for the posts, there were created on.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users