-
Notifications
You must be signed in to change notification settings - Fork 2
/
single.php
50 lines (39 loc) · 855 Bytes
/
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
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package wp-excellent
*/
get_header(); ?>
<?php
/* Start the Loop */
while (have_posts()) :
the_post();
?>
<div class="wrapper region flow prose">
<?php
get_template_part('template-parts/content/content-single');
?>
<?php
if (is_attachment()) {
// Parent post navigation.
the_post_navigation(
array(
/* translators: %s: Parent post link. */
'prev_text' => sprintf(__('<span class="meta-nav">Published in</span><span class="post-title">%s</span>', 'twentytwentyone'), '%title'),
)
);
}
?>
<?php
if (comments_open() || get_comments_number()) {
comments_template();
}
?>
</div>
<?php endwhile; // End of the loop.
?>
<?php
get_footer();