-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaxonomy-article-tag.php
53 lines (36 loc) · 1.25 KB
/
taxonomy-article-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
<?php
/*
Template Name: Archives
*/
?>
<div id="container">
<div id="content" role="main">
<?php
$taxonomy = get_queried_object();
?>
<?php
$url = $_SERVER["REQUEST_URI"];
$isItAcc = strpos($url, 'accurate');
$isItIns = strpos($url, 'insightful');
?>
<div class="page-header myfull">
<h2 style="color:#000"> . </h2>
</div>
<h2>Articles tagged as: <?php single_tag_title(); ?> <span class="infobox small"><span class="infolink"></span><span class="infoboxtext small" style="width:auto"><a target="_blank" href="https://climatefeedback.org/process/#definition">definition</a></span></span>
</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; ?>
<?php
$args = array( 'post_type' => 'evaluation' , 'article-tag' => $taxonomy->slug ) ;
$loop = new WP_Query( $args );
?>
<?php while ($loop->have_posts() ) : $loop->the_post(); ?>
<?php get_template_part('templates/loop-feedbacks'); ?>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>
</div><!-- #content -->
</div><!-- #container -->