-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaxonomy-forum_tag.php
More file actions
47 lines (27 loc) · 907 Bytes
/
taxonomy-forum_tag.php
File metadata and controls
47 lines (27 loc) · 907 Bytes
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
<?php get_header( 'forums' ); ?>
<main id="main-forums">
<div class="nav-padding">
<?php //get_template_part( 'forums', 'breadcrumbs' ); // might need special breadcrumb handling ?>
<header id="forums-header">
<h1><?php single_cat_title(); ?></h1>
<p>
<?php echo get_queried_object()->description; ?>
</p>
<hr>
</header>
<?php $paginate = (bool) have_posts(); ?>
<section class="forums-posts">
<?php if ( have_posts() ): ?>
<?php while ( have_posts() ): the_post(); ?>
<?php get_template_part( 'forums', 'loop-threads' ); ?>
<?php endwhile; ?>
<?php else: ?>
<h3 class="no-posts">No threads</h3>
<?php endif; ?>
</section>
<?php if ( $paginate ): ?>
<?php get_template_part( 'forums', 'pagination' ); ?>
<?php endif; ?>
</div>
</main>
<?php get_footer( 'forums' ); ?>