-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
executable file
·93 lines (64 loc) · 1.76 KB
/
category.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/**
* *PHP version 8.1
*
* Category page | core/category.php.
*
* @category Category_Page
* @package mannering-woocommerce-theme
* @subpackage Category_Page
* @author Raymond Thompson <[email protected]>
* @copyright 2017 Raymond Thompson
* @license http://www.gnu.org/licenses/gpl-3.0.en.html GPLv3
* @version GIT: https://github.com/raythompsonwebdev/mannering-music.git
*/
get_header(); ?>
<div id="post-content">
<?php if (have_posts()) : ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2>Archive for the ‘<?php single_cat_title(); ?>’ Category</h2>
<?php
/* If this is a tag archive */
} elseif (is_tag()) {
?>
<h2>Posts Tagged ‘<?php single_tag_title(); ?>’</h2>
<?php
/* If this is a daily archive */
} elseif (is_day()) {
?>
<h2>Archive for <?php the_time(get_option('F, Js, Y')); ?></h2>
<?php
/* If this is a monthly archive */
} elseif (is_month()) {
?>
<h2>Archive for <?php the_time(get_option('F, Y')); ?></h2>
<?php
/* If this is a yearly archive */
} elseif (is_year()) {
?>
<h2>Archive for <?php the_time(get_option('Y')); ?></h2>
<?php
/* If this is an author archive */
} elseif (is_author()) {
?>
<h2>Author Archive</h2>
<?php
/* If this is a paged archive */
} elseif (is_category()) {
?>
<h2>Blog <?php the_title(); ?></h2>
<?php } ?>
<?php
while (have_posts()) :
the_post();
?>
<?php get_template_part('template-parts/content', get_post_format()); ?>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part('template-parts/content', 'none'); ?>
<?php endif; ?>
</div>
<!--main-end-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>