-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy-question_type.php
65 lines (62 loc) · 2.26 KB
/
taxonomy-question_type.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
<?php
/**
* The generic template for displaying taxonomy archives. Overrides the generic archive.php.
*
* @package infectionNet
* @since infectionNet 0.1
*/
get_header();
$taxName = get_query_var('taxonomy');
$termName = get_query_var('term');
$termDescription = term_description( '', $termName );
?>
<section id="primary" class="site-content">
<div id="content" role="main">
<?php inet_breadcrumb(); ?>
<?php if ( have_posts() ) : ?>
<header class="archive-header">
<h1 class="archive-title"><?php echo get_taxonomy($taxName)->labels->singular_name ?> : <?php single_term_title(); ?></h1>
</header><!-- .archive-header -->
<div class="entry-content">
<div class="entry-content-right">
<?php
while ( have_posts() ) : the_post();
?>
<article id="post-<?php the_ID()?>" <?php post_class('brief'); ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if(has_excerpt()): ?>
<div class="excerpt"><?php the_excerpt(); ?></div>
<?php endif; ?>
</article><!--#post-<?php the_ID(); ?>-->
<?php
endwhile;
inet_content_nav( 'nav-below' );
else :
get_template_part( 'content', 'none' );
endif;
?>
</div><!--.entry-content-right-->
<div class="entry-content-left">
<?php
if($termDescription != '') : ?>
<div class="tax-desc">
<h2>About this term</h2>
<?php echo $termDescription; ?>
</div>
<?php
endif;
?>
<h2>Question Types</h2>
<ul class="categories links-list">
<?php
$categories = get_post_type_terms($taxName);
echo $categories;
?>
</ul>
</div><!--.entry-content-left-->
</div><!--.entry-content-->
</div><!-- #content -->
</section><!-- #primary .site-content -->
<?php
get_footer();
?>