-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-single.php
41 lines (24 loc) · 1.12 KB
/
content-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
<div class="article-single">
<div class="post">
<h2><?php the_title(); ?></h2>
<p class="article-info"><?php the_date('l j F Y'); ?> | نویسنده: <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a> | دسته بندی:
<?php
$categories = get_the_category();
$separator = " - ";
$output='';
foreach ($categories as $category) {
$output .= '<a href="'. get_category_link($category->term_id) .'">'. $category->cat_name .'</a>' . $separator;
}
echo trim($output, $separator);
?>
</p>
<?php the_content(); ?>
</div>
<div class="comments">
<?php
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
</div>
</div>