admin管理员组文章数量:1122832
Using the google page speed test i saw that some images were too large and needed to be resized. I used the ftp to download the necessary images, resized them locally, and then used the media upload tool to import them into Wordpress.
I went to each relevant post and changed the feature image to use the new ones. In the media library the file name is the same as the updated images. However after updating and using the chrome inspect tool, I see that it is still using the old image size even though the visible appearance has changed.
The filenames are confusing me. The original images were named as follows: image-1000x1000
. The new ones were named image-500x500
. After updating the posts with the new images, chrome inspect is now showing: image-500-1000x500-100
. What does this mean? Also, the original size of the photo is still the larger one.
Below is an image of the problem. Notice the size of the natural image it should be 450x450
now but it isn't.
Using the google page speed test i saw that some images were too large and needed to be resized. I used the ftp to download the necessary images, resized them locally, and then used the media upload tool to import them into Wordpress.
I went to each relevant post and changed the feature image to use the new ones. In the media library the file name is the same as the updated images. However after updating and using the chrome inspect tool, I see that it is still using the old image size even though the visible appearance has changed.
The filenames are confusing me. The original images were named as follows: image-1000x1000
. The new ones were named image-500x500
. After updating the posts with the new images, chrome inspect is now showing: image-500-1000x500-100
. What does this mean? Also, the original size of the photo is still the larger one.
Below is an image of the problem. Notice the size of the natural image it should be 450x450
now but it isn't.
2 Answers
Reset to default 1The theme was auto generating alternative image sizes for responsiveness, so my newly named images were actually duplicates.
Leaving this up in case anyone makes same mistake and stumbles across this.
You don't give enough details but your image naming is just bad for wordpress. I am not sure if anywhere in core there is code that tries to detect a resolution by the filename suffix but it is a fragile and confusing habit. If you have to have the data in the name maybe use underscore instead.
本文标签: post thumbnailsNewly uploaded images are not updating in featured image
版权声明:本文标题:post thumbnails - Newly uploaded images are not updating in featured image 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736301666a1931255.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
shift + F5
in browser). – N00b Commented May 30, 2016 at 16:06