Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(have_posts()):
- while(have_posts()): the_post(); $meta = get_post_meta(get_the_id()); global $post;
- if( has_post_thumbnail() ) {
- $hero_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'hero' );
- $hero = 'style="background-image: url('.$hero_url[0].');"';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement