Не работает пагинация
-
Значит имеется вот такое безобразие )))
<?php /** * Template Name: QWERTY */ get_header(); ?> <div id="content"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; else: ?> <?php endif; ?> </div> <div id="content" class="grid_9 <?php echo of_get_option('blog_sidebar_pos') ?>"> <div class="indent"> <?php query_posts('cat=117'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" class="post-holder clearfix"> <?php $post_image_size = of_get_option('post_image_size'); ?> <?php if($post_image_size=='' || $post_image_size=='normal'){ ?> <?php if(has_post_thumbnail()) { echo '<a href="'; the_permalink(); echo '">'; echo '<figure class="featured-thumbnail"><span class="img-wrap">'; the_post_thumbnail(); echo '</span></figure>'; echo '</a>'; } ?> <?php } else { ?> <?php if(has_post_thumbnail()) { echo '<a href="'; the_permalink(); echo '">'; echo '<figure class="featured-thumbnail large"><span class="img-wrap"><span class="f-thumb-wrap">'; the_post_thumbnail('post-thumbnail-xl'); echo '</span></span></figure>'; echo '</a>'; } ?> <?php } ?> <div class="post-body-holder"> <header> <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php $post_meta = of_get_option('post_meta'); ?> <?php if ($post_meta=='true' || $post_meta=='') { ?> <div class="post-meta"> <div class="meta-box"> <div class="date"> <time datetime="<?php the_time('Y-m-d\TH:i'); ?>"> <span class="day"><?php the_time('d'); ?></span> <span class="month"><?php the_time('m'); ?></span> </time> </div> <div class="comments_count"> <?php comments_popup_link('0', '1', '%', 'comments-link', '-'); ?> </div> </div> в рубрике: <?php the_category(', ') ?> </div><!--.post-meta--> <?php } ?> </header> <div class="post-content"> <?php $post_excerpt = of_get_option('post_excerpt'); ?> <?php if ($post_excerpt=='true' || $post_excerpt=='') { ?> <div class="excerpt"><?php $excerpt = get_the_excerpt(); echo my_string_limit_words($excerpt,50);?></div> <?php } ?> </div> </div> </article> <?php endwhile; else: ?> <div class="no-results"> <p><strong>There has been an error.</strong></p> <p>We apologize for any inconvenience, please <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>">return to the home page</a> or use the search form below.</p> <?php get_search_form(); ?> <!-- outputs the default WordPress search form--> </div><!--noResults--> <?php endif; ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <nav class="oldernewer"> <div class="older"> <?php next_posts_link('<span><</span> after') ?> </div><!--.older--> <div class="newer"> <?php previous_posts_link(' before <span>></span>') ?> </div><!--.newer--> </nav><!--.oldernewer--> <?php endif; ?> </div> </div><!--#content--> <?php get_footer(); ?>
Не хочет работать пагинация, при переходе контент остаётся на месте. Что не так? ))
Просмотр 2 ответов — с 1 по 2 (всего 2)
Просмотр 2 ответов — с 1 по 2 (всего 2)
- Тема «Не работает пагинация» закрыта для новых ответов.