Guest User

Untitled

a guest
Sep 15th, 2015
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if(have_posts()):
  3.  
  4. while(have_posts()): the_post(); $meta = get_post_meta(get_the_id()); global $post;
  5.  
  6. if( has_post_thumbnail() ) {
  7.  
  8. $hero_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'hero' );
  9.  
  10. $hero = 'style="background-image: url('.$hero_url[0].');"';
  11.  
  12. }
  13. ?>
RAW Paste Data