Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (have_posts()) : while (have_posts()) : the_post(); $post_type = get_post_type( get_the_ID() );
- if ($post_type == 'case_study') ?>
- <div class="col-sm-4 col-xs-12">
- <a href="<?php the_permalink(); ?>" class="gallery-box">
- <figure>
- <?php the_post_thumbnail('medium', array('class' => 'gallery__img')); ?>
- <figcaption class="gallery__caption">
- <div class="gallery__caption-in">
- <h3 class="gallery__tag"><?php the_title(); ?></h3>
- <h4 class="gallery__intro"><?php the_excerpt(); ?></h4>
- <img src="<?php echo get_template_directory_uri(); ?>/img/white-arrow.png" alt="" class="gallery__icon">
- </div>
- </figcaption>
- </figure>
- </a>
- </div>
- <?php endwhile; ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement