Get post thumbnail out side of the Loop in wordpress

Just got a way to get the post thumbnail outside of the Loop which (the thumbnail) was entered through the Post Image > Set the URL for an image/icon for this post: field on Edit Post page. Here it is.

$thumb = get_post_meta($post->ID,'_rs_icon',false);
$thumb = $thumb[0];

Leave a Reply

Your email address will not be published. Required fields are marked *