-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
executable file
·43 lines (39 loc) · 1.13 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 class="main">
<section class="blog section container" id="blogs">
<div class="page_section">
<h2 class="text-center">
<?php the_title(); ?>
</h2>
</div>
<div class="single__container">
<?php
if(have_posts()) :
while(have_posts()) :
the_post( );
if(has_post_thumbnail()) {
the_post_thumbnail( 'large', array('class'=>'blog__img') );
}
?>
<div class="content">
<?php
the_content();
wp_link_pages();
?>
</div>
<?php
endwhile;
endif;
?>
</div>
<div class="comments">
<?php
comments_template();
?>
</div>
</section>
</main>
<?php
get_footer();