-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
46 lines (32 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
<?php
/**
* Template part for displaying page content in page.php
* @package NakeyTheme
*/
get_header();
if ( have_posts() ) {
// Load posts loop.
while ( have_posts() ) {
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( has_post_thumbnail() ) : ?>
<header class="entry-header alignwide">
<?php the_post_thumbnail(); ?>
</header>
<?php endif; ?>
<div class="entry-content">
<?php
the_content();
?>
</div><!-- .entry-content -->
<footer class="entry-footer default-max-width">
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->
<?php
}
} else {
// If no content, include the "No posts found" template.
get_template_part( 'template-parts/content/content-none' );
}
get_footer();