-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy-authors.php
63 lines (51 loc) · 1.79 KB
/
taxonomy-authors.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
<?php
/*
Template Name: Archives
*/
?>
<div id="container">
<div id="content" role="main">
<?php
$taxonomy = get_queried_object();
?>
<div class="page-header myfull">
<h2 style="color:#000"> . </h2>
</div>
<h2>Reviews of articles by: <?php single_tag_title(); ?></h2>
<?php if (!have_posts()) : ?>
<div class="alert alert-warning">
<?php _e('Sorry, no results were found.', 'sage'); ?>
</div>
<!-- <?php get_search_form(); ?> -->
<?php endif; ?>
<!-- ARTICLE REVIEWS Listing -->
<?php
$args = array( 'post_type' => 'evaluation' , 'authors' => $taxonomy->slug ) ;
$loop = new WP_Query( $args );
?>
<?php if ($loop->have_posts()) :?>
<?php
echo '<p class="spaceup"></p><div class="row"><section class="separator"><h3 class="inseparator"> ARTICLE REVIEWS </h3> </section></div>';
while ($loop->have_posts() ) : $loop->the_post();
get_template_part('templates/loop-feedbacks', get_post_type());
endwhile;
?>
<?php endif; ?>
<?php the_posts_navigation(); ?>
<?php wp_reset_query(); ?>
<!-- CLAIM REVIEWS Listing -->
<?php
$args = array( 'post_type' => 'claimreview' , 'authors' => $taxonomy->slug ) ;
$loop = new WP_Query( $args );
?>
<?php if ($loop->have_posts()) :?>
<?php
echo '<p class="spaceup"></p><div class="row"><section class="separator"><h3 class="inseparator"> CLAIM REVIEWS </h3> </section></div>';
while ($loop->have_posts() ) : $loop->the_post();
get_template_part('templates/loop-claimreviews');
endwhile;
?>
<?php endif; ?>
<?php the_posts_navigation(); ?>
</div><!-- #content -->
</div><!-- #container -->