-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaxonomy.php
35 lines (28 loc) · 1.33 KB
/
taxonomy.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
<?php get_header(); ?>
<nav class="sidebar">
<?php $pagination = get_taxonomy_sidebar(); ?>
<?php if (get_queried_object()->taxonomy == 'chainletter') : ?>
<div class="bard-note">* Bard College Joanie 4 Jackie Tutorial</div>
<?php endif; ?>
</nav>
<section class="content" id="content" role="main">
<h1 class="page-title">
<?php echo get_queried_object()->name; ?>
</h1>
<div class="entry-meta chainletter-meta">
<?php the_chainletter_meta(); ?>
<?php if (!empty(get_queried_object()->description)) : ?>
<?php echo apply_filters('the_content', get_queried_object()->description); ?>
<?php endif; ?>
</div>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'video' ); ?>
<?php endwhile; ?>
<?php if ($previous = $pagination['previous']) : ?>
<a href="<?php echo get_term_link($previous->slug, get_queried_object()->taxonomy); ?>" class="pagination-link">« <strong>Previous:</strong> <?php echo $previous->name; ?></a>
<?php endif; ?>
<?php if ($next = $pagination['next']) : ?>
<a href="<?php echo get_term_link($next->slug, get_queried_object()->taxonomy); ?>" class="pagination-link"><strong>Next:</strong> <?php echo $next->name; ?> »</a>
<?php endif; ?>
</section>
<?php get_footer(); ?>