Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $type = 'ourpartners';
- $args = array(
- 'post_type' => $type,
- 'showposts' => 99999,
- 'order' => 'DESC',
- 'tax_query' => array(
- array(
- 'taxonomy' => 'ourteam',
- 'field' => 'slug',
- 'terms' => 'associates',
- ),
- ),
- );
- $wp_query = new WP_Query($args);
- if ($wp_query->have_posts()) {
- while ($wp_query->have_posts()) :
- $wp_query->the_post();
- ?>
- <div class="col-xs-6 col-sm-4 col-md-3">
- <div class="item">
- <a href="#">
- <div class="team-box">
- <div class="image-wrapper">
- <img src="img/team/marisol.jpg" alt="" class="img-responsive">
- </div>
- <h6>marisol l. perez</h6>
- <p>Attorney</p>
- </div>
- </a>
- </div>
- </div>
- <!-- // team box -->
- <?php
- endwhile;
- }
- wp_reset_query();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement