<div class="card-body" <?php if(has_post_thumbnail()): ?> style="background-image: url('<?php the_post_thumbnail_url();?>');" <?php endif;?> >
<div class="card-body" <?php if(has_post_thumbnail()): ?> style="background-image: url('<?php the_post_thumbnail_url();?>');" <?php endif;?> >