Home › Forums › Add-ons › Gallery Field › Removing an image from gallery does not detach it from post › Reply To: Removing an image from gallery does not detach it from post
I may not have been completely clear. I don’t mean that the image should be *deleted*; just that it should no longer be registered as an attachment on that post. If you have code that grabs all attachments for a post, then any images added to the gallery and later removed from it still get returned when fetching attachments for that post. Does that make sense?
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!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.