-
Notifications
You must be signed in to change notification settings - Fork 0
/
tag.php
56 lines (42 loc) · 1.22 KB
/
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
54
55
56
<?php
/**
* Default category archive
* Display the theme for "categoria-colunas" items
*/
get_header();
$term = get_queried_object();
global $wp_query;
?>
Tag: <?php echo $term->name; ?>
<section class="posts" data-max-pages="<?php echo $wp_query->max_num_pages; ?>">
<?php
while ( have_posts() ):
the_post();
$post->post_content = apply_filters( 'the_content', $post->post_content );
include(TEMPLATEPATH . '/inc/common-post-properties.php');
$post_image = get_the_post_thumbnail_url($aux_post, 'medium_large');
include(TEMPLATEPATH . '/template-parts/components/post-item-loop.php');
endwhile;
wp_reset_postdata();
?>
<div class="okn-pagination-container">
<nav class="navigation pagination" role="navigation">
<div class="nav-links">
<?php
$big = 999999999;
echo paginate_links( array(
'mid_size' => 1,
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages,
'prev_text' => __('<'),
'next_text' => __('>'),
) );
?>
</div>
</nav>
</div>
</section>
<?php
get_footer();