I have created a code to get an existing post's thumbnail and echo the url, but I would like to be able to have it get a default url is the post doesn't have a set thumbnail.
Any help would be appreciated! Here's my code so far
<?php
$thumb_id = get_post_thumbnail_id();
$thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail', false);
?>
<div class="content" style="background-image:url(<?php echo $thumb_url[0]; ?>);">
Default Thumbnail url : http://www.website.com/img/default.jpg