Title: adding paging to query_posts
Last modified: August 19, 2016

---

# adding paging to query_posts

 *  Resolved [localgrr](https://wordpress.org/support/users/localgrr/)
 * (@localgrr)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/adding-paging-to-query_posts/)
 * Hi there I am very new to all this so forgive me for asking a basic question.
 * I have a query:
 * **query_posts(“cat=4&posts_per_page=1”)**
 * I’d like to add a paging to this EG first, back, next, last – I tried it with
   the **regular next_posts_link** but it just brings up the same post again and
   again – I guess it’s not as simple as that.
 * If anyone could help I’d much appreciate it,
 * Ta,
 * Caroline

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

 *  Thread Starter [localgrr](https://wordpress.org/support/users/localgrr/)
 * (@localgrr)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/adding-paging-to-query_posts/#post-775507)
 * Seem to have found a solution here [http://weblogtoolscollection.com/archives/2008/04/19/paging-and-custom-wordpress-loops/](http://weblogtoolscollection.com/archives/2008/04/19/paging-and-custom-wordpress-loops/)
 *  [nashlviv](https://wordpress.org/support/users/nashlviv/)
 * (@nashlviv)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/adding-paging-to-query_posts/#post-775509)
 * Great work, localgrr, I had the same problem, this solved it completely. Thank
   you!

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

The topic ‘adding paging to query_posts’ is closed to new replies.

## Tags

 * [query_posts](https://wordpress.org/support/topic-tag/query_posts/)

 * 2 replies
 * 2 participants
 * Last reply from: [nashlviv](https://wordpress.org/support/users/nashlviv/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/adding-paging-to-query_posts/#post-775509)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
