Home › Forums › General Issues › Unattached image still shows as attached › Reply To: Unattached image still shows as attached
Hi @runpixelrun
This isn’t so much of a bug, but more of a problematic feature of WP and ACF.
When an image is uploaded, WP will attach it to the post which is being edited. This is outside of ACF.
When you remove the image from the field, ACF is only modifying the postmeta, not the actual image, so the connection to the post remains.
To remove this connection is potentially harmful to some websites which rely on the default WP behavior.
For now, your best bet is to hook into the acf/update_value, or even the acf/save_post actions and modify the image connection manually.
Good luck
Thanks
E
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.