forked from interglobalvision/pindropstudio-com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-recording.php
executable file
·62 lines (56 loc) · 1.35 KB
/
single-recording.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
<?php
get_header();
?>
<main id="main-content">
<?php
if( have_posts() ) {
while( have_posts() ) {
the_post();
get_template_part('partials/single-event/single-event-past');
?>
<div class="grid-row">
<?php render_divider(); ?>
</div>
<?php
$luminaries = get_post_meta($post->ID, '_igv_related_luminaries', true);
if ($luminaries) {
$luminaries = explode(', ', $luminaries);
?>
<div class="grid-row justify-center margin-top-large margin-bottom-large">
<?php
global $post;
foreach($luminaries as $post_id) {
$post = get_post($post_id);
setup_postdata($post);
?>
<div class="grid-item item-s-6 item-m-4 text-align-center">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('l-4-square', array('class' => 'margin-bottom-basic')); ?>
<h3 class="margin-bottom-small"><?php the_title(); ?></h3>
</a>
</div>
<?php
}
wp_reset_postdata();
?>
</div>
<?php
}
get_template_part('partials/related-posts');
?>
</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();
?>