forked from generaxion/axio-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
41 lines (30 loc) · 864 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
<?php
/**
* The template for displaying all single posts.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package axio
*/
get_header(); ?>
<?php
if (has_action('theme_hero')) {
do_action('theme_hero');
}
?>
<div id="primary" class="primary primary--single">
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('entry entry--post'); ?>>
<div class="entry__content blocks">
<?php the_content(); ?>
</div>
<?php if (has_action('theme_entry_footer')) : ?>
<footer class="entry__footer">
<?php do_action('theme_entry_footer', get_the_ID()); ?>
</footer>
<?php endif; ?>
</article>
<?php endwhile; ?>
</div><!-- #primary -->
<?php
get_footer();