-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtaxonomy-resource-tag.php
57 lines (52 loc) · 2.16 KB
/
taxonomy-resource-tag.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
<?php
get_header();
get_template_part('inc/nav','nohead');
?>
<div class="wide-container noheaderimage">
<div class="row nopadrow">
<div class="col span_24 centered">
<header>
<h1><a href="<?php echo site_url(); ?>/resources">Resources</a></h1>
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h4>Category: <?php echo single_cat_title(); ?></h4>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h4>Archive for <?php the_time('F jS, Y'); ?></h4>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h4>Archive for <?php the_time('F, Y'); ?></h4>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h4>Archive for <?php the_time('Y'); ?></h4>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h4>Search Results</h4>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h4>Author Archive</h4>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h4>Blog Archives</h4>
<?php } ?>
</header><!-- end row-->
</div>
</div>
</div>
<div class="wide-container">
<div class="container">
<div class="row page-content articles-container">
<?php get_template_part ('inc/resources','tags');?>
<div class="col span_18">
<h3>Tagged: <?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?></h3>
<?php while (have_posts()) : the_post(); ?>
<div class="article resource">
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<p><?php echo get_the_term_list( $post->ID, 'resource-tag', '<span class="ss-icon ss-pika">tag</span> ', ', ' ); ?>
</div>
<?php endwhile; ?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</p>
</div>
</div>
</div> <!-- end container-->
</div>
<?php get_footer() ?>