Home › Forums › Backend Issues (wp-admin) › get_field_objects() empty till Save Draft is clicked › Reply To: get_field_objects() empty till Save Draft is clicked
I don’t think there’s a way to trigger the save outside of actually saving the post to get ACF to do it’s thing.
If your looking to get a list of fields, if you know the group_id for the field group in question you can use:
That will return a the list of fields, then you could loop through that list of fields to get the information for each field type and get the data based on that.
EDIT: I mean the group key, will look something like “group_123456789abcfef”
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!
2022 was a big year for Advanced Custom Fields, with more capabilities, a new generation of ACF Blocks, a refreshed UI, and a new home. Our year in review post looks at advancements we’ve made and offers a glimpse of the future.— Advanced Custom Fields (@wp_acf) January 6, 2023
© 2023 Advanced Custom Fields.