-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy-repertoire.php
48 lines (46 loc) · 1.11 KB
/
taxonomy-repertoire.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
<?php
/**
* Template Name: Singel Project
* Description: Project template.
*
* @package WordPress
* @subpackage WP-Glio
*/
get_header(); ?>
<div class="row content">
<div class="col-md-4 archive-title">
<h1>
<?php
if( is_tax() ) {
global $wp_query;
$term = $wp_query->get_queried_object();
$title = $term->name;
}
echo $title;
?>
</h1>
<?php
if( is_tax() ) {
global $wp_query;
$term = $wp_query->get_queried_object();
$description = $term->description;
}
echo '<div class="archive-description">';
echo $description;
echo '</div>';
?>
</div>
<div class="col-md-8 archive-list">
<?php while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p><?php the_excerpt(); ?></p>
<div class="archive-list-meta">
<span class="post-date"><?php //echo get_the_date('F Y'); ?></span>
<span class="view-more"><a href="<?php the_permalink(); ?>">VIEW <i class="icon-chevron-right"></i></a>
</span>
</div>
<hr />
<?php endwhile; // end of the loop. ?>
</div>
</div>
<?php get_footer(); ?>