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:
acf_get_fields($group_id)
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.