This is getting weirder and weirder and beginning to think there is a bug somewhere.
Here are two field I have:
I have tried the most basic code as follows to update;
update_field('field_64c782fc4c55d', 12, 1074);
If I go to my custom posts and look at the field, it is empty, however, if I do this;
echo 'field_64c782fc4c55d: '.get_field(field_64c782fc4c55d, 1074);
I get 12, as updated above. Bizzare.
I have an API that calls the field by name, rather than key as follows;
"fs_ski_resort_aa_zoom": "", // empty string
If I manually insert data via the view of my custom post type, say, 7, I get this;
So there seems to be something going on in the database and things are not matching correctly.
Any help appreciated.
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!