How to use SRCSET with get_the_post_thumbnail()?
Found the solution myself. WordPress by defauly has multiple sizes. All we need to is add src. The 3rd parameter of get_the_post_thumbnail has a array in which we can set attributed, including src set. There’s no direct way to add code for image urls in SRC SET. So we need to use wp_get_attachment_image_url inside the … Read more