-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
43 lines (33 loc) · 1.1 KB
/
single.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
<?php get_header( ); ?>
<main>
<?php get_template_part( 'template-parts/pageBanner' ); ?>
<section class="section post">
<div class="container container--boxed ">
<?php
get_template_part( 'template-parts/breadCrumb' );
// Need the while loop to read out the_author_posts_link()
while(have_posts( )) : the_post( ); ?>
<div class="post__content">
<p><?php the_time('F j, Y'); ?></p>
<div class="link-underline">
<?php the_content( ); ?>
</div>
</div>
<?php endwhile; ?>
</div>
</section>
<?php
if ( comments_open() ) : ?>
<section class="section comments">
<div class="container container--boxed ">
<h2 class="section__header title title--medium-large">
Leave a Comment!
</h2>
<div class="comments__box">
<?php comments_template(); ?>
</div>
</div>
</section>
<?php endif; ?>
</main>
<?php get_footer( ); ?>