How to display an image URL from thumbnail in WordPress?

You we use get_the_post_thumbnail_url(); . You can use this inside loop or outside loop. If you are using this outside of loop then you have to pass post ID otherwise its optional in case inside loop.

Suggest An Answer

No suggestions avaliable!

Latest post from WordPress Interview Questions

Ask Question