admin管理员组

文章数量:1335176

I have a very strange problem

There are images with the correct size on the host and image sizes are properly recorded in WordPress

But I get the following html code output

<img width="300" height="200" src="/wp-content/uploads/2020/04/Imagename.jpg" data-lazy-type="image" data-src="/wp-content/uploads/2020/04/Imagename.jpg" class="attachment-us_300_200 size-us_300_200 wp-post-image lazy-loaded" alt="IMAGETITLE" srcset="" data-srcset="/wp-content/uploads/2020/04/Imagename.jpg 400w, /wp-content/uploads/2020/04/Imagename.jpg 600w, /wp-content/uploads/2020/04/Imagename.jpg 300w, /wp-content/uploads/2020/04/Imagename.jpg 900w" sizes="(max-width: 300px) 100vw, 300px" title="IMAGETITLE">

The size I requested was 300x200 pixels but, the image is displayed in full size and the loading speed of the site is greatly reduced.

This problem occurred a week ago after a few plugin and theme updates

  • Disabled all plugins and theme > noting changed
  • Manual replacement wordpress files > noting changed
  • Change the PHP version > noting changed

Sorry for the bad English Can anyone help me?

本文标签: post thumbnailsWordpress Responsive Image ( srcset ) not work properly