Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1.                 <?php if (has_post_thumbnail( $post->ID ) ): ?>
  2.                 <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
  3.                
  4.                 <div class="slide">
  5.                     <div class="slide_img" style="background-image:url(<?php echo $image[0]; ?> )"></div>
  6.                 </div>
  7.                 <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement