• Hi,

    I was wondering if the ‘upload to’ field in media library is informational of functional?

    Because, it’s often incorrect.

    For example, I created a post. I uploaded an image as the featured image and published the post. In the media library, the image was attached to this post and looked great.

    But, when I deleted this original post (I permanently deleted the post from trash)and created a new post, set the image I had previously used in the deleted post as the featured image; it still remained listed unattached in the media library.

    I have many images which show their status as unattached in the media library, but they are either featured images in posts or pages or images in the postal page.

    I’m wondering if this is a problem functionally with WordPress , or is whether an image is ‘attached’ Or ‘unattached’ is just informational nice to have but okay if it’s incorrect?

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter Peppermintcrisp

    (@webdancer123)

    More digging: In the database, wp_postmeta, it looks like the _thumbnail_id keeps track of the thumbnail for the post. post_parent is where the ‘uploaded to’ field is kept. Even though in wp_posts, post_parent field for the image is 0. my posts are finding their images fine. Looks like the other images associated with a post are in the post_content field.

    So, is there some other way ‘upload to’/post_parent field for images is used other than informational only?

Viewing 1 replies (of 1 total)

The topic ‘unattached media images’ is closed to new replies.