Need clear explanation about medias/files/attchments
During an import, I need to add images and linked to a custom post using WPML like :
post 1 in french
1.1 picture foo.jpg (visible in library and attached to this post and add as featured image )
1.2 picture bar.jpg (visible in library and attched to this post)
post 1 in english
2.1 picture foo.jpg (visible in library and attched to this post and add as featured image)
2.2 picture bar.jpg (visible in library and attched to this post)
post 2 in french…
Sometimes I´ve got these weird behaviours :
- Featured image visible in post but not visible in library
- Others images found but not visible in library
- and others kind of bugs about this
So, I would like to get an explanation about how WordPress works to get images in library and be attached and as featured for others custom post type.
What happens in the database ?
If you have a good tutorial or explanation on the Web, please share me the link.