-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
53 lines (42 loc) · 1.34 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
53
<?php
/**
* The template for displaying all single posts and attachments
* @Simple-Bootstrap-Theme
*/
get_header(); ?>
<div class="container">
<div class="row">
<article class="col-sm-9">
<div class="jumbotron">
<h1><?php echo get_the_title(); ?></h1>
<small class="text-muted"><span class="dashicons dashicons-clock"></span> <?php echo get_the_date( 'Y-m-d' ); ?></small>
<hr>
<?php
// Start the loop
if (have_posts()) :
while (have_posts()):
the_post();
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail( 'medium' );
}
the_content();
endwhile;
endif;
?>
<hr>
<small class="text-muted">
<?php $args = array(
'prev_text' => 'Previous: %title',
'next_text' => 'Next: %title',
'screen_reader_text' => 'Continue Reading'
);
the_post_navigation($args); ?>
</small>
</div>
</article>
<div class="col-sm-3">
<?php get_sidebar("main-sidebar"); ?>
</div>
</div>
</div>
<?php get_footer(); ?>