-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
35 lines (26 loc) · 924 Bytes
/
single.php
File metadata and controls
35 lines (26 loc) · 924 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
<?php get_header();
while (have_posts( )) {
the_post();
if (has_excerpt()) {
$excerpt = get_the_excerpt();
} else {
$excerpt = wp_trim_words( get_the_content(),18 );
};
pageBanner(array(
'title' => get_the_title(),
'subtitle' => $excerpt,
)); ?>
<div class="container container--narrow page-section">
<div class="metabox metabox--position-up metabox--with-home-link">
<p>
<a class="metabox__blog-home-link" href="<?php echo site_url('/blog'); ?>"><i class="fa fa-home" aria-hidden="true"></i> Back to Blog Home</a> <span class="metabox__main">Posted by <?php the_author_posts_link(); ?> on <?php the_time('F j, Y'); ?> in <?php echo get_the_category_list( ', ' ); ?></span>
</p>
</div>
<div class="generic-content">
<?php the_content(); ?>
</div>
</div>
<?php
}
get_footer();
?>