en WordPress.com Forums › Themes Insert featured image in css style Author Posts August 16, 2010 at 1:27 pm #510366 moffepoffeMember Hey, I’ve been trying to deal with a huge problem which i cannot solve, i’ve been googleing and trying different techniques to get this to work. single-gigs.php get_header(); ?> <div id=”container”> <div id=”gigpres”> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div style=”background: url(<?php the_post_thumbnail( ‘thumbnail’ ); ?> ) !important;”>adasdasdasd </div> this returns a <img scr source when opening in chrome, how go i get the the_post_thumbnail to just give me the source of the file without <img scr? Thanks in advance August 16, 2010 at 1:27 pm #510464 supportbotMember You did not specify a blog address or reason for posting when you created this topic. This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums. If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful. If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question. This is an automated message. Author Posts The topic ‘Insert featured image in css style’ is closed to new replies.