-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
37 lines (26 loc) · 808 Bytes
/
single.php
File metadata and controls
37 lines (26 loc) · 808 Bytes
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
<?php
/**
* The single post template.
*
* Used when a single post is queried.
*/
get_header();
if( have_posts() ) : while( have_posts() ) : the_post(); ?>
<section class="centered-text-block single-post">
<div class="container">
<div class="row">
<div class="col-10 col-centered">
<?php // Featured image
if( has_post_thumbnail() ) : ?>
<img src="<?php echo featuredURL('blog_hero'); ?>" class="centered-text-block__featured-image" alt="<?php the_title(); ?> featured image">
<?php endif; ?>
<?php // Meta data
echo '<h1>'.get_the_title().'</h1>';
get_template_part('parts/meta');
the_content(); ?>
</div>
</div>
</div>
</section>
<?php endwhile; endif;
get_footer(); ?>