• Pat

    (@patkemper)


    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.

    • This topic was modified 5 years, 1 month ago by Pat.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi
    You know I always find some issues with using any of the built in wordpress image editing stuff. I don’t rely on it.

    if I’m cropping or replacing an image, I always find it less hassle to do it outside the wordpress editor, and then -critically -change the name or at least add a v1 or v2 so it fully updates the file with a real new name, and then I upload it and insert it where i want it.

    In the past when I’ve relied on wordpress to do this for me it fails in crazy ways. I do it externally, and I always make sure to give the revised image a new or at least different name. That helps for asset managment too.

    Might not help you but hope it does.

    Mark

    Thread Starter Pat

    (@patkemper)

    Many thanks for your reply @markatmindsize

    My clients are appreciating the media library and it’s features. All in all it’s doing a quite good job. However, as you mentioned, there are some pitfalls for sure.

    Thus, uploading all the files in many sizes won’t be an option for my clients. Nonetheless, thumbnail-behavior forces my clients to go as you described.

    I’m actually hopeful, someone has an idea on how to solve this issue? Maybe some magic settings or filters that actually handle the root cause?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Post thumbnail is not persistent’ is closed to new replies.