When adding image to gallery field, they don’t appear as attached to post in the media library. So if we delete an image from the media library, we don’t know taht it is attached to a post and the get_field() method failed on the broken image field.
Is there a way to attach galery field image to post on save, and remove image from gallery when an image is removed from media library?
I’m new to ACF, and having this same question/issue. I don’t see any answers for it in the forum or documentation. Anyone have a good way to address this? Either with code, or manual procedures? Thanks!
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users