Я отредактировал шаблон моей категории и список сообщений в порядке на первой странице. Однако, когда я нажимаю «старые сообщения», чтобы вернуться к предыдущим сообщениям, я получаю сообщение об ошибке 404. У меня больше постов, чем показано на первой странице, так что проблема не в этом. Кто-нибудь знает почему? Это код, который я использую.
<div class="left_col">
<?php /* Start the Loop */ ?>
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('posts_per_page=5'.'&paged='.$paged);
while ($wp_query->have_posts()) : $wp_query->the_post();
?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>
<?php endwhile; ?>
<?php twentyeleven_content_nav( 'nav-below' ); ?>
<?php $wp_query = null; $wp_query = $temp;?>
</div>