Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="tf-content">
- <div class="container"><!-- Container -->
- <div class="row"><!-- Row -->
- <?php
- $args = array(
- 'post-type' => 'portfolio'
- );
- $query = new WP_Query( $args );
- ?>
- <?php if($query -> have_posts() ) : while( $query -> have_posts() ) : $query -> the_post(); ?>
- <a href= "<?php the_permalink(); ?>">
- <div class="col-md-4 col-sm-12 col-lg-3 col-xl-2">
- <div class="post-block" style= "margin: 0;"> <!-- Post #1-->
- <div class="post-detail" style= "padding: 0;">
- <div class="img-wrap">
- <?php the_post_thumbnail(); ?>
- </div>
- </div>
- </div>
- </div>
- </a>
- <?php endwhile; endif; wp_reset_postdata(); ?>
- </div><!-- end Row -->
- </div><!-- End Container -->
- $args = array(
- 'post_type' => 'portfolio'
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement