Title: query_posts() a few posts &#8211; How?
Last modified: August 19, 2016

---

# query_posts() a few posts – How?

 *  Resolved [ickatanet](https://wordpress.org/support/users/ickatanet/)
 * (@ickatanet)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/query_posts-a-few-posts-how/)
 * Hi all,
 * Can I query multiple posts knowing their ID’s? Something like
 * query_posts(‘p=10,11,12,15’);
 * Actually this one os not working, is there a solution?

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/query_posts-a-few-posts-how/#post-964970)
 * Check out the **post__in** parameter in [query_posts](http://codex.wordpress.org/Template_Tags/query_posts#Post_.26_Page_Parameters).
 *  Thread Starter [ickatanet](https://wordpress.org/support/users/ickatanet/)
 * (@ickatanet)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/query_posts-a-few-posts-how/#post-964974)
 * Thanks, I found it but after posting this topic.
 * Anyways, thanks!

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

The topic ‘query_posts() a few posts – How?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [ickatanet](https://wordpress.org/support/users/ickatanet/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/query_posts-a-few-posts-how/#post-964974)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
