Title: Page navi using query_posts
Last modified: August 18, 2016

---

# Page navi using query_posts

 *  [Rodrigo](https://wordpress.org/support/users/rghedin/)
 * (@rghedin)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/page-navi-using-query_posts/)
 * Hello!
 * I created a layout for a special category. There, I limited the number of posts
   in the page:
 * `<?php query_posts('cat=4&posts_per_page=12'); ?>`
 * The problem is I can’t navigate to old posts… The code of I put is that:
 * `<p id="navega"><?php next_posts_link('Back') ?> . <?php previous_posts_link('
   Next') ?></p>`
 * But doesn’t work… When I click in the link, the URL change to [http://myurl.com/category/cat4/page/2/](http://myurl.com/category/cat4/page/2/),
   but the posts as the same…
 * What I’m doing wrong?
 * Best regards!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [punkid](https://wordpress.org/support/users/punkid/)
 * (@punkid)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/page-navi-using-query_posts/#post-416394)
 * I face the same pro,too.
    Is there anyone could give us a hand?
 *  Thread Starter [Rodrigo](https://wordpress.org/support/users/rghedin/)
 * (@rghedin)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/page-navi-using-query_posts/#post-416936)
 * Anybody?
 * Look an example: [http://www.winajuda.com/category/noticias/](http://www.winajuda.com/category/noticias/)
 * Best regards…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Page navi using query_posts’ is closed to new replies.

## Tags

 * [back](https://wordpress.org/support/topic-tag/back/)
 * [navi](https://wordpress.org/support/topic-tag/navi/)
 * [next](https://wordpress.org/support/topic-tag/next/)
 * [query_post](https://wordpress.org/support/topic-tag/query_post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Rodrigo](https://wordpress.org/support/users/rghedin/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/page-navi-using-query_posts/#post-416936)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
