Home › Forums › General Issues › get_field() doesn't return a value when fields are created with update_field() › Reply To: get_field() doesn't return a value when fields are created with update_field()
I think there is still the question, though, of why the same method that saves the field keys when you manually save a post in the WordPress admin could not be replicated for when you create a post programmatically.
I understand why the field keys are faster, but sometimes you don’t want to hard code those values. It makes it harder to read the code (imagine handing your code over to a new developer, who has to determine what all those field keys are referring to), and it’s not as portable.
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!