Проблема в том, что на открывшейся страничке, после нажатии на тэг, не появляется постраничная разбивка статей. В архивах есть, в категориях есть, а в тэгах нет.
Может кто встречался с этой проблемой?
Тема Dilectio
В файле archive.php прописанно следующее:
<?php get_header(); ?>
<!-- Container -->
<div class="CON">
<!-- Start SC -->
<div class="SC">
<?php is_tag(); ?>
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pagetitle">Архив категории ‘<?php single_cat_title(); ?>’</h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="pagetitle">Сообщения с тегами ‘<?php single_tag_title(); ?>’</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pagetitle">Архив за <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pagetitle">Архив за <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle">Архив за <?php the_time('Y'); ?> год</h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle">Архив сообщений автора</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle">Архивы блога</h2>
<?php } ?>
<!-- Start Nav -->
<?php if (function_exists('wp_pagenavi')) { ?><?php wp_pagenavi(); ?><?php } ?>
<!-- End Nav -->
<?php while (have_posts()) : the_post(); ?>
<div class="Post" id="post-<?php the_ID(); ?>" style="padding: 5px 0px;">
<div class="PostHead" style="margin-left: 0px;">
<h3><a title="Постоянная ссылка на <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<small class="PostAuthor">От: <?php the_author() ?> : <?php the_time('M j,Y') ?></small>
<small class="PostCat">В: <?php the_category(', ') ?></small>
</div>
</div>
<?php endwhile; ?>
<!-- Start Nav -->
<?php if (function_exists('wp_pagenavi')) { ?><?php wp_pagenavi(); ?><?php } ?>
<!-- End Nav -->
<?php else : ?>
<h2 class="pagetitle">Не найдено</h2>
<?php endif; ?>
</div>
<!-- End SC -->
<?php get_sidebar(); ?>
</div>
<!-- End CON -->
<?php get_footer(); ?>