Adding an image above a post in WordPress
On each post create a custom field called img_post_header with the path to the img as the value.
As we want the image to appear on the main blog page and the single post page the following code needs to be added in loop.php and in loop-single.php above the title call
<img src=”<?php echo get_post_meta($post->ID, ‘img_post_header’, true);?>” width=”500px” height=”200px”/>
H&W is optional.
NTS. NEVER call a page template home.php. I’ve no idea why but it causes massive confusion. I guess there’s some reference to home elsewhere that WP just doesn’t like.