/
tag.php
46 lines (27 loc) · 884 Bytes
/
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
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div class="main-col">
<?php if(have_posts()) : $inner_count = 1; ?>
<header class="title">
<h3>Browsing by Tag: <?php single_cat_title('', true); ?></h3>
</header>
<div class="array">
<?php while(have_posts()) : the_post(); ?>
<?php include(locate_template('content.php')); ?>
<?php $inner_count++; ?>
<?php endwhile; ?>
</div>
<?php if(paginate_links()) : ?>
<?php
$args = array(
'prev_text' => false,
'next_text' => false
);
?>
<div class="pagination"><div class="inner"><?php echo paginate_links($args); ?></div></div>
<?php endif; ?>
<?php else : ?>
<p class="message info"><?php echo __('No posts published.'); ?></p>
<?php endif; ?>
</div>
<?php get_footer(); ?>