jasondevine
6/26/2016 - 12:01 AM

WP Thumbnail as background image

WP Thumbnail as background image

background-image:url('<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large', false );echo $src[0]; ?>');