Title: Paginating Posts with Custom SQL
Last modified: August 21, 2016

---

# Paginating Posts with Custom SQL

 *  [Jacob Martella](https://wordpress.org/support/users/arenapigskin/)
 * (@arenapigskin)
 * [13 years ago](https://wordpress.org/support/topic/paginating-posts-with-custom-sql/)
 * I’ve been trying to paginate posts on each of the profile pages for the writers
   on the site and to get the posts, I’m using a custom SQL query. The only problem
   is that they aren’t paginated and I can’t figure out how to do so. Any help?
 * Page code:
    [http://pastebin.com/A7mQZcUg](http://pastebin.com/A7mQZcUg)
 * Page:
    [http://www.arenapigskin.com/staff/jacob-martella/](http://www.arenapigskin.com/staff/jacob-martella/)

Viewing 1 replies (of 1 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/paginating-posts-with-custom-sql/#post-3820996)
 * Here are a couple of articles that might help:
 * [http://wordpress.mcdspot.com/2012/05/14/roll-your-own-pagination/](http://wordpress.mcdspot.com/2012/05/14/roll-your-own-pagination/)
 * [http://wordpress.mcdspot.com/2010/11/25/pagination-using-paginate_links/](http://wordpress.mcdspot.com/2010/11/25/pagination-using-paginate_links/)

Viewing 1 replies (of 1 total)

The topic ‘Paginating Posts with Custom SQL’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/paginating-posts-with-custom-sql/#post-3820996)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
