-
Notifications
You must be signed in to change notification settings - Fork 4
/
taxonomy-wpx-issues.php
44 lines (38 loc) · 1.17 KB
/
taxonomy-wpx-issues.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
/**
* The template for the Archives.
*
* @package WordPress
* @subpackage WPX_Theme
* @since 0.1.0
* @version 1.0
*/
$description = term_description();
get_header(); ?>
<header>
<?php if ( is_day() ) : ?>
<h1><?php echo get_the_date() ?></h1>
<?php elseif ( is_month() ) : ?>
<h1><?php echo get_the_date( 'F Y' ); ?></h1>
<?php elseif ( is_year() ) : ?>
<h1><?php echo get_the_date( 'Y' ); ?></h1>
<?php elseif ( is_category() ) : ?>
<h1><?php single_cat_title(); ?></h1>
<?php elseif ( is_tag() ) : ?>
<h1><?php single_tag_title(); ?></h1>
<?php else : ?>
<h1>Issues</h1>
<?php endif; ?>
<?php if ($description) { ?><p><?php echo $description; ?></p><?php } ?>
<p class="default alert">Found <strong><?php echo $wp_query->found_posts; ?></strong> posts in the archive for <strong><?php
if ( is_day() ) : echo get_the_date();
elseif ( is_month() ) : echo get_the_date( 'F Y' );
elseif ( is_year() ) : echo get_the_date( 'Y' );
elseif ( is_category() ) : single_cat_title();
elseif ( is_tag() ) : single_tag_title();
elseif ( is_tax() ) : single_term_title();
else : 'this query';
endif;
?></strong>.</p>
</header>
<?php get_footer(); ?>