Category Pagination bizarreness?
-
I am having an issue with my category pages. First off, the category page is named category-6.php, in case that matters. Here’s how I am calling my posts:
<?php query_posts('cat=6,5,4'.get_option('posts_per_page')); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
However, pagination isn’t showing up at all. I’ve tried to implement some changes as shown here:
https://www.ads-software.com/support/topic/57912#post-312858
and the pagination link shows up for previous posts, but when I click the link it takes me to https://www.mysite.com/featured-articles/page/2/, which shows exactly the same post summaries as are on the previous page. Here is my code:
<div class="navigation"> <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div> <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div> </div> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?> <?php query_posts('cat=6,5,4&paged=$paged'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
I need to get pagination working properly on these category pages. Does anyone have any solutions I’ve missed?
- The topic ‘Category Pagination bizarreness?’ is closed to new replies.