I’m going to update mine to use get_post_meta() instead as the fields in the API’s can change.
For anyone wanting to do the same, remember that if you just want a single value, you have to set the last parameter to true.
Otherwise, even if there’s only one field you will still get an array returned containing one item with the value you want.
@retroriff did yo try toggling the return options? Maybe also try changing the data in the field you are trying to get and save it as well.
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!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 29, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.