WordPress: Enable Featured Image In A Theme
Most themes already come with this support but if you are building one from scratch and you want to add this ability, just add this add_theme_support code to the functions.php file.
WordPress: Get Featured Image URL
Get the post featured image url with this code.
To get post meta data in WordPress, use this code.