Title: Sorting posts by ID
Last modified: August 19, 2016

---

# Sorting posts by ID

 *  [evenstar00](https://wordpress.org/support/users/evenstar00/)
 * (@evenstar00)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/sorting-posts-by-id/)
 * Hi! I’d like to display specific posts on my homepage by ID. Something like:
 * Post with ID 5
 * Post with ID 1
 * Post with ID 25
 * I hope you get what I mean. Is it possible to do that? Hope someone can help!

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

 *  [richarduk](https://wordpress.org/support/users/richarduk/)
 * (@richarduk)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/sorting-posts-by-id/#post-709791)
 * Bit of a hack, but from [http://codex.wordpress.org/Template_Tags/query_posts](http://codex.wordpress.org/Template_Tags/query_posts)
 * Create a category e.g. index-page-posts.
 * Show only the posts from that category
 * Display posts from only one category ID:
 * query_posts(‘cat=4’);
 * Display posts from only one category by name:
 * query_posts(‘category_name=Staff Home’);
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/sorting-posts-by-id/#post-709795)
 * There’s also the [Get-a-Post plugin](http://guff.szub.net/2005/01/27/get-a-post/)
   that might help.

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

The topic ‘Sorting posts by ID’ is closed to new replies.

## Tags

 * [id](https://wordpress.org/support/topic-tag/id/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [sort](https://wordpress.org/support/topic-tag/sort/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Chris_K](https://wordpress.org/support/users/handysolo/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/sorting-posts-by-id/#post-709795)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
