Title: paginate query_posts
Last modified: August 21, 2016

---

# paginate query_posts

 *  [lberelson](https://wordpress.org/support/users/lberelson/)
 * (@lberelson)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/paginate-query_posts-1/)
 * Addendum to this closed post: [http://wordpress.org/support/topic/paginate-query_posts?replies=2](http://wordpress.org/support/topic/paginate-query_posts?replies=2)
   
   I’m using a slightly newer version of wordpress than this post
 * Similar scenario: this code works properly and now i’m trying to add the pagination
   to the query (see code 2 & 3)
 * **code1**
 *     ```
       <?php query_posts('posts_per_page=6&&cat=3&&orderby=title&&order=ASC');
       while (have_posts()) : the_post();
       ?>
   
       <h4 class="bio" style="font-weight:bold"> <?php the_title() ?> </h4>
   
       <?php echo get_the_post_thumbnail($page->ID,  array(65,65) ); ?> 
   
       <?php the_content(); ?>
       <p> </p>
   
       <hr>
       <?php endwhile; ?>
   
       <?php echo paginate_links ('Next »', '« Previous'); ?>
       ```
   
 * **code2**
 *     ```
       <?php query_posts("cat=3&posts_per_page=5&paged=$paged");
       while (have_posts()) : the_post();
       ?>
       ```
   
 * **code3**
 *     ```
       <?php query_posts($query_string.'&posts_per_page=-1'. '&paged='.$paged .'cat=3&&orderby=title&&order=ASC' );
       while (have_posts()) : the_post();
       ?>
       ```
   
 * site ref: [http://howlingwolfmedia.com/site3/classes/instructors/](http://howlingwolfmedia.com/site3/classes/instructors/)

The topic ‘paginate query_posts’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [lberelson](https://wordpress.org/support/users/lberelson/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/paginate-query_posts-1/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
