Home › Forums › General Issues › Saved Drafts not displaying custom fields › Reply To: Saved Drafts not displaying custom fields
Aloha Elliot, we noticed this behavior again in latest ACF PRO (5.9.2) using the classic editor. When repeatedly saving a draft, the draft post id will not have any ACF postmeta created (but the main post id will). So you can see the missing fields in the revision browser for the post.
The workaround mentioned above with removing &preview=true
in the preview URL works for us (because it reverts to using the main post id, not the revision id, in the get_field() calls).
I’ll continue to investigate to see if I can figure out why the revision ID is not also getting the ACF postmeta created. Cheers!
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.