-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
54 lines (34 loc) · 990 Bytes
/
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
54
<?php get_header(); ?>
<div class="container">
<div class="row">
<div class="col-sm-12 kitchen-sink">
<?php
if( get_field( 'page_title' ) ){
?>
<h1 class="page-title"><?php echo get_field( 'page_title' ); ?></h1>
<?php
}else{
the_title( '<h1 class="page-title">', '</h1>' );
}
?>
<h5 class="date"><?php echo get_the_date( get_option('date_format') ); ?></h5>
<?php while ( have_posts() ) : the_post(); ?>
<?php
if ( has_post_thumbnail() ) {
?>
<div class="thumb-wrap">
<?php the_post_thumbnail('post-thumb'); ?>
</div><!-- .thumb-wrap -->
<?php
}
?>
<?php the_content(); ?>
<?php endwhile; ?>
<div class="band mt-40">
<?php previous_post_link( '%link', 'Previous Post' ); ?>
<?php next_post_link( '%link', 'Next Post' ); ?>
</div><!-- .band -->
</div>
</div><!-- .row -->
</div><!-- .container -->
<?php get_footer(); ?>