-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingle.php
More file actions
29 lines (24 loc) · 935 Bytes
/
single.php
File metadata and controls
29 lines (24 loc) · 935 Bytes
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
<?php get_header(); ?>
<?php require_once('classes/Helpers.php');
?>
<div class="page-content">
<section class="article wrapper">
<?php if(have_posts()): the_post()?>
<h1 class="article__title text30"><?=the_title()?></h1>
<div class="article__flex-containers">
<div class="article__left-container">
<?=the_content()?>
</div>
<div class="article__right-container">
<?php
foreach (get_post_meta($post->ID, 'related-events') as $post) : ?>
<span class="underline-grey">
<a href="<?=get_permalink($post['ID'])?>"><?=$post['post_title']?></a>
</span><br><br>
<?php $i++; endforeach;?>
</div>
</div>
<?php endif ?>
</section>
</div>
<?php get_footer(); ?>