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
More than likely the plugin is not saving the information that ACF needs to map the fields. The pluign you’re using is probably inserting the postmeta for the field correctly, but not the field that tells ACF how to treat that data.
For every postmeta field ACF has an accompanying field.
Lets say that your field name is “my_field” and the ACF field ID of that field is something like “field_123456789abcdef”
ACF will save another postmeta field named “_my_field” with a value of “field_123456789abcdef”
This second field is not saved until you actually edit and save the post. The author of the plugin you’re using would need to take this into account.
Rather than using the acf function get_field(), or the_field(), you can use the standard WP get_post_meta() function to get the value you’re looking for.
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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?
— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.