Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' ); ?>
  2.  
  3. <a href="<?php echo $img['0'];?>" class="product_grid <?php if ( has_post_thumbnail() ) { ?>wpex-lightbox<?php } ?>" >
  4. <div class="wpb_column vc_column_container vc_col-sm-4">
  5. <div class="vc_column-inner">
  6. <div class="wpb_wrapper bg_img" style="background-image: url('<?php echo $img['0'];?>')">
  7. <h3><?php the_title(); ?></h3>
  8. <?php the_content(); ?>
  9. </div>
  10. </div>
  11. </div>
  12. </a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement