-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingle.php
More file actions
executable file
·49 lines (42 loc) · 1.08 KB
/
single.php
File metadata and controls
executable file
·49 lines (42 loc) · 1.08 KB
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
<?php
get_header();
get_template_part('content', 'hero-image');
?>
<div class="box-secondary box-full-width">
<div class="container" id="blogs">
<div class="row">
<div class="col-sm-9">
<?php
if ( have_posts() ):
while ( have_posts() ):
the_post();
?>
<article class="blog-post">
<h2><?php the_title(); ?></h2>
<div class="info">
<?php the_time('F jS, Y'); ?> by <?php the_author( );?>
</div>
<div class="main-text">
<?php the_content(); ?>
</div>
</article>
<div class="next-post pull-right">
<?php next_post_link(); ?>
</div>
<div class="prev-post pull-left">
<?php previous_post_link(); ?>
</div>
<?php
endwhile;
else:
?>
<p><?php _e('Sorry, this page does not exist.'); ?></p>
<?php endif; ?>
</div>
<div class="col-sm-3">
<?php get_sidebar() ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>