Post thumbnail is not persistent
-
Dear WP-community,
I’m facing an issue and I don’t know how to deal with it. This issue is related to the post thumbnail.The thumbnail is also being edited, when the used image is being edited elsewhere.
To reproduce it:
– Select an image as thumbnail. Maybe edit/crop that image to suite your needs. Save the new image and set it as thumbnail.
– Inside your post, add that exact image to the page, however, you should edit it. Restore the original image, edit/crop it and place the edited image on your page.
– Publish your post.
– Now call get_the_post_thumbnail, which will give you an img-tag, however, it will not give you the image you set as thumbnail, but the most recent edited version of that image.What I’m actually expecting:
Thumbnails should not be treated other than images placed on posts or pages.
Speaking of posts/pages: Restoring/editing any image does not have any impact on any previously used reference of that image.
The topic ‘Post thumbnail is not persistent’ is closed to new replies.