Check if the attachment already exists
-
Is there a way to make the plugin check if there’s already an attachment in the media library for the imported image and attach the existing image to the post as post thumbnail without creating a new attachment in media library?
Let me explain.
I’m importing 100 posts. But there are only 20 images for all posts, because some posts use the same images as post thumbnails.
The desired result is to get 20 new attachments in the media library after the import.
However I’m getting 100 attachments with individual IDs, even if they link to the same 20 physical images.
WordPress allows to attach the same image as post thumbnail for several posts.
Is there a way to make the plugin do the same instead of creating several attachments with the same image source?
Thanks for the great plugin and you efforts.
- The topic ‘Check if the attachment already exists’ is closed to new replies.