-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
52 lines (40 loc) · 1.55 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
44
45
46
47
48
49
50
51
52
<?php
/**
* The template for displaying all single posts.
*
* @package understrap-child
*/
get_header(); ?>
<div class="wrapper" id="wrapper-index">
<div id="content" class="container">
<div class="row">
<div class="col-md-8">
<?php
if ( have_posts() ) : while( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>">
<h2 class="post-title"><?php the_title(); ?></h2>
<?php if( has_post_thumbnail() ) {
echo the_post_thumbnail('full');
} ?>
<div class="post-entry"><?php the_content(); ?></div>
<?php wp_link_pages(); ?>
<?php the_tags(); ?>
<?php endwhile; ?>
<div class="nav-box">
<div class="prev"><?php previous_post_link(); ?></div>
<div class="next"><?php next_post_link(); ?></div>
</div>
<hr>
<?php comments_template(); ?>
<?php else : ?>
<?php get_template_part('post', 'not-found'); ?>
<?php endif; ?>
</article>
</div>
<?php get_sidebar(); ?>
</div>
</div><!-- #primary -->
</div><!-- .row -->
</div><!-- Container end -->
</div><!-- Wrapper end -->
<?php get_footer(); ?>