forked from afmarchetti/mio-tema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
44 lines (26 loc) · 1.02 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php get_header(); ?>
<div class="content">
<?php if (have_posts()) :?><?php while(have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="content__title"><?php the_title(); ?></h1>
<p> <?php the_time('j M , Y') ?> - <?php the_category(', '); ?></p>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('miotema_single', array('class' => 'img-res','alt' => get_the_title())); ?>
</a>
<?php the_content();?>
<?php $post_tags = wp_get_post_tags($post->ID);
if(!empty($post_tags)) {?>
<p class="tag"> <small> <strong><?php esc_html_e('Tag: ', 'miotema'); ?></strong> </small> <br/> <?php the_tags('', ' ', ''); ?></p>
<?php } ?>
<div class="comments">
<?php comments_template();?>
</div>
</article>
<?php endwhile; else : ?>
<h3> <?php esc_html_e('Sorry, no posts matched your criteria.', 'miotema'); ?> </h3>
<?php endif; ?>
</div>
<aside class="sidebar">
<?php get_sidebar(); ?>
</aside>
<?php get_footer(); ?>