-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
43 lines (32 loc) · 1.18 KB
/
single.php
File metadata and controls
43 lines (32 loc) · 1.18 KB
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
<?php
defined('ABSPATH') || exit;
get_header();
the_post();
?>
<main>
<div class="container">
<div class="flex">
<div class="basis-8/12 px-md">
<h1 class="text-primary mb-xxl text-3xl font-bold"><?php the_title(); ?></h1>
<div class="my-xl">
<?php the_post_thumbnail([500]); ?>
<div class="flex my-md">
<p class="basis-1/2"><?= get_the_date(); ?></p>
<p class="basis-1/2 text-right"><?php the_category(); ?></p>
</div>
<?php the_content(); ?>
</div>
<div class="comment-form">
<?php
// comment_form(); // it is use only show comment form
comments_template(); // it is use show both comment form and list
?>
</div>
</div>
<?php // get_sidebar(); ?>
<?php dynamic_sidebar('sidebar-widget');?>
</div>
</div>
</main>
<?php
get_footer();