Wordpress 5.7 is not creating multiple sized version of my uploaded images

210 Views Asked by At

So i've been following this advanced Wordpress Theme dev tutorial Wp Tutorial

And all good but i'm seeing in that particular video that in the end he inspect with the browser and get an image with a srcset property

Image with src prop

However, when i use the exact same code is not working for me. I literally cloned this guy's tutorial code (although i'm writing mine while i take the course to study) and i got the same error. Also, if i go to wp-content/uploads i only see one version of my uploaded image, when i should have default WP sizes (thumbnail, medium, large, etc)

I wonder if something happened with WP 5.7 or newer versions and srcset won't pop up as a prop anymore or i'm doing something wrong.

This is The repository i'm using while i take the course so anyone can check it out and find out what's happening.

My desire is to be able to see multiple uploaded versions of any image inside wordpress and to be able to see srcset property in my img tags on the frontend.

To find out this error i simply did the_post_thumbnail('thumbnail') and got this

<img width="233" height="233" src="http://localhost/aquila/wp-content/uploads/2021/04/el_bochinche_pars.jpeg" class="w-100" alt="" loading="lazy" sizes="(max-width: 350px) 350px, 233px">

No srcset for multiple img versions or anything.

Thank you!

0

There are 0 best solutions below