I'm currently trying to layer a post title on top of the posts featured image but all I see at the moment is ");">" instead of the image.
The code I'm using is as follows:
<div style="width:609px;height:364px;background-image:url(<?php the_post_thumbnail(); ?>);"><h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2></div>
And here is the CSS for the H2 style
article h2 a{
background-color:#bf0c08;
color:#fff;
width:auto;
font-size:30px;
text-decoration:none;
padding:8px;
max-width:479px;
line-height:60px;}
Any idea where I'm going wrong? Also a solution would be awesome :)
You can see this on www.ridermagazine.co.uk