forked from interglobalvision/pindropstudio-com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-members-only.php
executable file
·70 lines (63 loc) · 1.49 KB
/
page-members-only.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
<?php
get_header();
?>
<main id="main-content">
<?php
if( have_posts() ) {
while( have_posts() ) {
the_post();
?>
<article id="page" <?php post_class('container'); ?>>
<div class="grid-row margin-bottom-basic">
<?php render_divider(get_the_title()); ?>
</div>
<div class="grid-row">
<div class="grid-item item-s-12 item-m-8 offset-m-2 margin-bottom-basic">
<div class="post-copy">
<?php the_content(); ?>
</div>
</div>
</div>
<?php
$member_posts = new WP_Query(array(
'post_type' => array('event', 'recording'),
'posts_per_page' => -1,
'category__in' => 451,
));
if ($member_posts->have_posts()) {
?>
<!--
<div class="grid-row margin-bottom-small">
<?php render_divider('Members Only'); ?>
</div>
-->
<div class="shuffle-section media-items margin-bottom-small">
<div class="shuffle-preloader"></div>
<div class="shuffle-container grid-row hidden">
<?php
while ($member_posts->have_posts()) {
$member_posts->the_post();
get_template_part('partials/custom-pages/event-media');
}
wp_reset_postdata();
?>
</div>
<?php
}
?>
</article>
<?php
}
} else {
?>
<section id="page" class="container">
<div class="grid-row">
<article class="u-alert grid-item item-s-12"><?php _e('Sorry, no pages matched your criteria'); ?></article>
</div>
</section>
<?php
} ?>
</main>
<?php
get_footer();
?>