-
Notifications
You must be signed in to change notification settings - Fork 14
/
single.php
28 lines (28 loc) · 1.07 KB
/
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
<?php get_header(); ?>
<div class="container">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div class="post-date-divider">
<span><?php the_time('l j F Y') ?></span>
</div>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="post-title">
<?php the_title(); ?>
</h1>
<p class="comments-number"><?php comments_number(__('No Comments'), '1 ' . __('Comment'), '% ' . __('Comments')); ?></p>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<br><br>
<p>
<?php if (get_the_tags()) {?>
<?php _e('Tags')?>:
<?php foreach (get_the_tags() as $tag) { ?>
<a href="<?php echo get_term_link($tag->term_id)?>" class="post-tag"><?php echo $tag->name?></a>
<?php } ?>
<?php } ?>
</p>
<?php comments_template(); ?>
<?php endwhile; ?>
</div><!--.container-->
<?php get_footer(); ?>