forked from interglobalvision/pindropstudio-com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-people.php
executable file
·83 lines (77 loc) · 1.68 KB
/
archive-people.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
get_header();
?>
<main id="main-content">
<section id="posts" class="container">
<div class="grid-row margin-bottom-small">
<?php render_divider('People'); ?>
</div>
<?php
$people_core = new WP_Query(array(
'post_type' => 'people',
'posts_per_page' => -1,
'orderby' => 'menu_order',
'meta_query' => array(
'relation' => 'OR',
array(
'key' => '_igv_circle',
'value' => 'on',
'compare' => '!='
),
array(
'key' => '_igv_circle',
'compare' => 'NOT EXISTS'
)
)
));
$people_circle = new WP_Query(array(
'post_type' => 'people',
'posts_per_page' => -1,
'orderby' => 'menu_order',
'meta_query' => array(
array(
'key' => '_igv_circle',
'value' => 'on',
'compare' => '='
)
)
));
if ($people_core->have_posts()) {
?>
<div class="shuffle-section">
<div class="shuffle-preloader"></div>
<div class="shuffle-container grid-row hidden">
<?php
while ($people_core->have_posts()) {
$people_core->the_post();
get_template_part('partials/people/person');
}
?>
</div>
</div>
<?php
}
if ($people_circle->have_posts()) {
?>
<div class="grid-row margin-top-basic margin-bottom-small">
<?php render_divider('Pindrop Circle'); ?>
</div>
<div class="shuffle-section">
<div class="shuffle-preloader"></div>
<div class="shuffle-container grid-row hidden">
<?php
while ($people_circle->have_posts()) {
$people_circle->the_post();
get_template_part('partials/people/person');
}
?>
</div>
</div>
<?php
}
?>
</section>
</main>
<?php
get_footer();
?>