-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
47 lines (25 loc) · 964 Bytes
/
single.php
File metadata and controls
47 lines (25 loc) · 964 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
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php get_header(); ?>
<main class="container mt-5">
<div class="row">
<div class="col-sm-8">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>>
<h1 class="display-4"><?php the_title(); ?></h1>
<p> <?php the_time('j M Y'); ?> - <?php the_category(', ');?></p>
<?php the_post_thumbnail('nx_single', array( 'class' => 'img-fluid mb-4', 'alt' => get_the_title() ))?>
<?php the_content(); ?>
<?php wp_link_pages('pagelink=Page %'); ?>
<?php the_tags(); ?>
<hr>
<div class="comments">
<?php comments_template(); ?>
</div>
</article>
<?php endwhile; else: ?>
<p><?php esc_html_e('Sorry, no post matched your criteria.', 'nx'); ?></p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
</main>
<?php get_footer(); ?>