-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
47 lines (44 loc) · 1.63 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
<?php get_header(); ?>
<div class="dev-body">
<div class="container">
<div class="row">
<!-- Post -->
<div class="col-md-9">
<section class="post-section">
<?php
if (have_posts( )):
while (have_posts( )) : the_post( );
?>
<div class="dev-article">
<h2><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2>
<!-- Feature image -->
<?php
if(has_post_thumbnail()) {
the_post_thumbnail("large");
}
?>
<!-- Date -->
<div class="post-date">
<em>
<?php echo get_the_date(); ?>
| By <?php the_author(); ?></em>
</div>
<?php the_content();
wp_link_pages();
?>
<?php comments_template(); ?>
</div>
<?php
endwhile;
else: echo 'no post';
endif;
?>
</section>
</div>
<!-- Sidebar -->
<?php get_sidebar(); ?>
</div>
</div>
</div>
<!-- Bottom menu -->
<?php get_footer(); ?>