How to Get Post’s Featured Image using wordpress?

Hello Friends,

in this post i m showing you how to display your any posts’s featured images in anywhere in your site. try below code.

in above code you can directly pass your post id instead of $post->ID. $post->ID is getting your current post id automatically.