So heres my issue, I have a custom post type of Stock and this is using acf to provide some additional fields. These for the most part are working but I cannot get either the radio button or a select to update correctly. Heres What I’m trying to do:
The acf field is called show_on_homepage and it has its conditions set as Yes and No (also tried with Yes : Yes and No : No)
In my code I am trying to set this as Yes: update_field('show_on_homepage', 'Yes', $post->Id);
However it doesn’t update the value on the post with the $post->ID.
Am I missing something here? I should point out that other fields like this are working: update_field('stock_id', 'CF-97', $post->ID);
As mentioned I also tried with a select and this didn’t work either. Can anyone give examples for both ways (Select or Radio Buttons) please?
Clients need flexibility. Developers need a repeatable workflow that doesn’t have a steep learning curve. See how digital marketing agency Noiza found both with Advanced Custom Fields in our latest case study.https://t.co/BxQAy6COJt