-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
31 lines (26 loc) · 816 Bytes
/
single.php
File metadata and controls
31 lines (26 loc) · 816 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
30
31
<?php
/*
This is the template for the single post
@package sunsettheme
*/
?>
<?php get_header(); ?>
<div class="primaryContainer">
<main class="main" id="main" role="main">
<div class="postsContainer">
<?php
if(have_posts()):
while(have_posts()): the_post();
//save post view count
sunsetSavePostViews(get_the_ID());
get_template_part('template-parts/single', get_post_format());
if(comments_open()):
comments_template();
endif;
endwhile;
endif;
?>
</div>
</main>
</div>
<?php get_footer(); ?>