Problem with pagination on category pages
-
Hi guys,
I am having a problem with the pagination on my category pages.
(Example: https://learntocodewith.me/reviews/ and https://learntocodewith.me/women/)Both “reviews” and “women” are category pages. If you click onto the the 2nd page at the bottom, you’ll see it results in a 404.
However, on my tag pages, (like here: https://learntocodewith.me/tag/learning-to-code/) the pagination works. Also works on author page. Only category page is having problem.
I have my tags, category, author, and date pages all setup in the archive.php file. (I use the 320 press bootstrap theme – https://320press.com/wpbs/ – and it came setup this way.)
this is the code for the category part in the archive page:
<?php if (is_category()) { ?> <h1 class="archive_title h2"> <span><?php _e("", "wpbootstrap"); ?></span> <?php single_cat_title(); ?> </h1> <?php echo category_description( $category_id ); ?> <?php } elseif (is_tag()) { ?> <h1 class="archive_title h2"> <span><?php _e("Posts Tagged:", "wpbootstrap"); ?></span> <?php single_tag_title(); ?> </h1>
This is the code where the pagination is called:
<?php if (function_exists('page_navi')) { // if expirimental feature is active ?> <?php page_navi(); // use the page navi function ?> <?php } else { // if it is disabled, display regular wp prev & next links ?> <nav class="wp-prev-next"> <ul class="pager"> <li class="previous"><?php next_posts_link(_e('« Older Entries', "wpbootstrap")) ?></li> <li class="next"><?php previous_posts_link(_e('Newer Entries »', "wpbootstrap")) ?></li> </ul> </nav> <?php } ?>
Ah! Please help ??
- The topic ‘Problem with pagination on category pages’ is closed to new replies.