ploogo
10/1/2013 - 7:38 PM

Add Class to Post Thumbnail

DISPLAY IMAGE FROM IMAGES FOLDER WITH LINK

<a href="<?php echo bloginfo( 'url' ); ?>/air-conditioning-heating/"><img src="<?php echo get_stylesheet_directory_uri() ?>/images/aternus.png" alt="" title="" width="" height="" /></a>

PHONE NUMBER WITH SCHEMA AND CLICKABLE PHONE TEXT
<h4 class="tel">Call Us Today:<a href="tel:<?php echo get_option('phone_text'); ?>" itemprop="telephone">


FEATURED IMAGE AS A BACKGROUND

<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 1920,1000 ), false, '' ); ?>
			  
			  <style>
                html{
                background: url(<?php echo $src[0]; ?> ) no-repeat top center;background-attachment:scroll;}
              </style>
<?php the_post_thumbnail( 'wpbs-featured-recent', array('class' => 'img-circle')); ?>