-
Notifications
You must be signed in to change notification settings - Fork 0
/
loop-partners.php
37 lines (37 loc) · 966 Bytes
/
loop-partners.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<div id="partners-loop" class="loop partners-loop" data-view="list">
<div class="list-view">
<div class="list-header">
<div class="fix">
<div class="col col-4 col-header name">Partner</div>
<div class="col col-4 col-header website">Website</div>
<div class="col col-4 col-header phone">Phone</div>
</div>
</div>
<div class="row">
<?php
// ALL PARTICIPANTS LOOP
$partners_query = new WP_Query( array(
'post_type' => 'partners',
'posts_per_page' => -1,
'order' => 'ASC',
'orderby' => 'post_title',
'tax_query' => array(
array(
'taxonomy' => 'partner_type',
'field' => 'slug',
'terms' => 'media',
'operator' => 'NOT IN'
)
)
) );
if( $partners_query->have_posts() ):
while( $partners_query->have_posts() ):
$partners_query->the_post();
get_template_part( 'content', 'partner' );
endwhile;
wp_reset_postdata();
endif;
?>
</div>
</div>
</div>