Site icon Hip-Hop Website Design and Development

The way to use SRCSET with get_the_post_thumbnail()?

My wordpress theme makes use of get_the_post_thumbnail() to show Thumbnails on Posts.

I’ve set customized picture sizes however operating it by means of Lighthouse provides following error.

Serves photographs with low decision
Picture pure dimensions ought to be proportional to the show dimension and the pixel ratio to maximise picture readability.

My innitial method was to set Serves photographs with

get_the_post_thumbnail($ID, 'massive');

This results my largest contentful paint and will increase web page dimension, thus impacting my efficiency.

I must strike a stability.

So is their a solution to embody a number of thumbnail sizes, and let wordpress select the one thats finest for person show and present the proper dimension to person?