-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
25 lines (25 loc) · 713 Bytes
/
single.php
File metadata and controls
25 lines (25 loc) · 713 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
<?php get_header(); ?>
<?php
// Start the Loop.
while ( have_posts() ) : the_post(); ?>
<article>
<div class="featured">
<?php the_post_thumbnail(); ?>
</div>
<h1 class="title"><?php the_title(); ?></h1>
<div class="meta">
<?= __( 'Author', 'yast' ); ?>: <strong><?php the_author(); ?></strong> | <?= __( 'Date', 'yast' ); ?>:
<strong><?php the_date(); ?></strong>
</div>
<div>
<?php the_content(); ?>
</div>
</article>
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
endwhile;
?>
<?php get_footer(); ?>