Не отображается ссылка/кнопка на pege2

При клике на тег/метку открывается архив по данному тегу. Так вот, почему то на странице нет кнопки/ссылки на пейдж2. Пробовал в ручную набить в адресной строке …/page/2/, то страница открывается, то есть физически она существует. С категориями все в порядке, проблема происходит только с тегами.

Вопрос: почему и как сделать, чтобы ссылка/кнопка на пейдж2 появилась?

На всякий случай привожу коды:

—————————————
1. template-archives.php
————————————–

<?php
/*
Template Name: Archives Page
*/
?>
<?php get_header(); ?>

        <!-- Content Starts -->
        <div id="content" class="wrap">
            <div id="main" class="col-left">

                <div id="main-content">
                                                                            
                    <div class="post">
                        <h2>The Last 30 Posts</h2>
            
                        <ul>
                            <?php query_posts('showposts=30'); ?>
                            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                                <?php $wp_query->is_home = false; ?>
                                <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> - <?php the_time('j F Y') ?> - <?php echo $post->comment_count ?> comments</li>
                            
                            <?php endwhile; endif; ?>    
                        </ul>                
                    </div>
                    
                    <div class="post">
                
                        <h2>Categories</h2>
            
                        <ul>
                            <?php wp_list_categories('orderby=order&show_count=1&hide_empty=0&exclude=2&title_li='); ?>    
                        </ul>    
                    </div>                    

                    <div class="post">
                        <h2>Monthly Archives</h2>
            
                        <ul>
                            <?php wp_get_archives('type=monthly&show_post_count=1') ?>    
                        </ul>                
                    </div>                    
                                                        
                </div>
                <!-- main-content ends -->

            </div>
            <!-- main ends -->
                        
            <div class="col-right">
                <?php get_sidebar(); ?>
            </div>
        </div>
        <!-- Content Ends -->
        
<?php get_footer(); ?>

—————————–
2. archive-single.php
—————————–

<?php get_header(); ?>

        <!-- Content Starts -->
        <div id="content" class="wrap">
            <div id="main" class="col-left">

                        <?php if (is_paged()) $is_paged = true; ?>
                        <?php if (have_posts()) : ?>
                        <?php the_post(); ?>

                <div id="main-content">
                                                                        
                    <?php woo_get_custom('embed'); ?>

                     <!-- Post Starts -->
                                 <!-- Post Ends -->
                                                        
                </div>
                <!-- main-content ends -->

                <!-- show embed code -->
                <?php include(TEMPLATEPATH . "/includes/embed.php"); ?>


            <?php else: ?>
                <p>Sorry, no posts matched your criteria.</p>
            <?php endif; ?>

            </div>
            <!-- main ends -->

                    <h6>Все записи по теме "<span style="text-transform: uppercase"><?php single_cat_title(); ?></span>"</h6>    <div class="video-box <?php $boxcount++; if ($boxcount == 3) { echo 'last'; } ?> ">
                        
                        <div class="inside">
                    <h2>v- <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
                </div>                    
                <?php if(function_exists('the_ratings')) { echo '<div class="fr ratings">'; the_ratings(); echo '</div>'; } ?>
                        <div class="fix"></div>
                        <?php the_excerpt() ?>
                        <a href="<?php the_permalink() ?>">читать дальше &raquo;</a>
                        <p class="post-details"><img alt="" src="images/data.png" />&nbsp;<?php the_time('j F Y г.'); ?> &nbsp;&nbsp; <img alt="" src="images/cat.png" />&nbsp;<?php the_category(', ') ?> &nbsp;&nbsp; <img alt="" src="images/tag.png" />&nbsp;<?php the_tags('<span class="tags">', ', ', '</span>'); ?> &nbsp;&nbsp; <img alt="" src="images/comments.png" /> <a href="<?php comments_link(); ?>">Комментировать</a></p>
            </div>
    
            <div class="col-right">
                <?php get_sidebar(); ?>
            </div>
        </div>
        <!-- Content Ends -->
        
<?php get_footer(); ?>

—————————–
3. archive.php
—————————–

<?php get_header(); ?>
<!-- Content Starts -->
<div id="content" class="wrap">
  <div id="main" class="col-left">
    <div id="main-content">

<?php if (have_posts()) : ?>
<h6>Все записи по теме "<span style="text-transform: uppercase"><?php single_cat_title(); ?></span>"</h6>
<?php while (have_posts()) : the_post(); ?>

      <!-- Post Starts -->
      <div class="archives post wrap">
        <div class="block">
          <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
        <?php if(function_exists('the_ratings')) { echo '<div class="fr ratings">'; the_ratings(); echo '</div>'; } ?>          
          <?php the_excerpt() ?>
          <a href="<?php the_permalink() ?>">читать дальше &raquo;</a>
          <p class="post-details"><img alt="" src="images/data.png" />&nbsp;<?php the_time('j F Y г.'); ?> &nbsp;&nbsp; <img alt="" src="images/cat.png" />&nbsp;<?php the_category(', ') ?> &nbsp;&nbsp; <img alt="" src="images/tag.png" />&nbsp;<?php the_tags('<span class="tags">', ', ', '</span>'); ?> &nbsp;&nbsp; <img alt="" src="images/comments.png" /> <a href="<?php comments_link(); ?>">Комментировать</a></p>
        </div>                    
      </div>
      <!-- Post Ends -->

<?php endwhile; ?>
<?php else : ?>
<h6>Все записи по теме "<span style="text-transform: uppercase"><?php single_cat_title(); ?></span>"</h6>
<p>Глюк! Попробуйте снова...</p>
<?php endif; ?>

    </div>
    <!-- main-content ends -->
    <!-- show embed code -->
    <div class="more_entries wrap">
      <?php if (function_exists('wp_pagenavi')) { ?><?php wp_pagenavi(); ?><?php } ?>
    </div>
  </div>
  <!-- main ends -->
  <div class="col-right">
    <?php get_sidebar(); ?>
  </div>
</div>
<!-- Content Ends -->
<?php get_footer(); ?>

Gringo! Прикалываетесь, что ли? Вы нам еще сюда весь движок вывалите.

Во-первых: прочитайте сначала про иерархию шаблонов, чтоб понимать в какой странице искать проблему.

Не листаются теги? Смотрите какой файл отвечает за их отображение и ищите проблему в нем.

Во-вторых: для листинга страниц смотрите next и previous

или пробуйте, например, так:

<div class="navigation">
    <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
</div>
Anonymous
Отправить
Ответ на: