Title: category.php next_posts_link HELP
Last modified: August 20, 2016

---

# category.php next_posts_link HELP

 *  [mattbettiol](https://wordpress.org/support/users/mattbettiol/)
 * (@mattbettiol)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categoryphp-next_posts_link-help/)
 * So as of right now, if I click the next button to go to the next page where my
   other posts pretaining to a certain category should be, I get page not found.
 * This is right after my col01 class:
 *     ```
       <?php if (have_posts()) : ?>
           <?php query_posts('showposts=2'); ?>
       	<?php while (have_posts()) : the_post(); ?>
       ```
   
 * and I have this lower down:
 *     ```
       <div id="pageControls"><span class="previous"><?php previous_posts_link('Previous') ?></span><span class="next"><?php next_posts_link('Next') ?></span></div>
       ```
   
 * When I click next to go to the next page to see my posts for the category, it
   go to [http://mywebsite.com/category/news/page/2/](http://mywebsite.com/category/news/page/2/)
   but display NOTHING(404 page)

The topic ‘category.php next_posts_link HELP’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [mattbettiol](https://wordpress.org/support/users/mattbettiol/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/categoryphp-next_posts_link-help/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
