Image staying connected to post after removing
-
Hello,
our page uses post type – gallery to display images attached to a post in a gallery. The images are uploaded through “Add images” button under “Image Gallery” heading on “Add new post” page.
However, if we decide to remove an image from that gallery it will still show on our website. I checked in “wp-post” table in our DB and saw that the field “post-parent” of the removed image doesn’t change to 0 as it should, but it stays populated with the id of the post we inserted it to.
The only current solution is going to “Media files” and manually detaching it from that post, which is inconvenient due to large amount of media files that are uploaded.
Is there any solution to this, any chunk of code that should be entered or planned updates to WordPress that could fix this.
Thank you.
The page I need help with: [log in to see the link]
- The topic ‘Image staying connected to post after removing’ is closed to new replies.