-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
executable file
·34 lines (32 loc) · 850 Bytes
/
single.php
File metadata and controls
executable file
·34 lines (32 loc) · 850 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
<?php
/**
* The single post template.
*
* Used when a single post is queried.
*/
get_header();
?>
<section class="main-content">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1><?php the_title(); ?></h1>
<?php
get_template_part( 'parts/meta' );
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
the_content();
wp_link_pages(
array(
'before' => 'Pages: ', 'next_or_number' => 'number'
) );
the_tags( 'Tags: ', ', ', '' );
edit_post_link( 'Edit this entry', '', '.' );
?>
</article>
<?php
comments_template();
endwhile; endif; ?>
</section>
<?php
get_footer();