-
Notifications
You must be signed in to change notification settings - Fork 12
/
taxonomy-language.php
46 lines (32 loc) · 1.21 KB
/
taxonomy-language.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
<?php get_header() ?>
<!-- s-content
================================================== -->
<section class="s-content">
<h2 class="text-center"><?php single_cat_title(); ?></h2>
<?php
$term = get_queried_object();
$term_meta = get_term_meta($term->term_id,'language_featured_image',true);
if(isset($term_meta['featured_image']) && $term_meta['featured_image']>0) {
echo wp_get_attachment_image( $term_meta['featured_image'], 'medium' );
}
?>
<div class="row masonry-wrap">
<div class="masonry">
<div class="grid-sizer"></div>
<?php
while(have_posts()){
the_post();
get_template_part("template-parts/post-formats/post",get_post_format());
}
?>
</div> <!-- end masonry -->
</div> <!-- end masonry-wrap -->
<div class="row">
<div class="col-full">
<nav class="pgn">
<?php philosophy_pagination(); ?>
</nav>
</div>
</div>
</section> <!-- s-content -->
<?php get_footer(); ?>