How WordPress attaches its Featured Images with posts?
You can upload images in 2 places: Media page (uploads.php) or from Add Media button in a post/page edit page. When you upload images from the post edit screen, ‘post_parent’ for all images uploaded is set to current post. When you upload images from the Media page, ‘post_parent’ is set to 0. When an image … Read more