Title: WP_Query with pages
Last modified: August 19, 2016

---

# WP_Query with pages

 *  Resolved [steadyedd](https://wordpress.org/support/users/steadyedd/)
 * (@steadyedd)
 * [17 years ago](https://wordpress.org/support/topic/wp_query-with-pages/)
 * HI. I’m building a site where we’d like to show a summary of 5 specific pages(
   not posts) on the home page. Sort of like a sub menu (there’s a main nav menu
   at the page top as well created with wp_list_pages()). Normally I’d just use 
   wp_list_pages() and include the required pages as a parameter. But…rather than
   just a list of links we’d like to show the Page Excerpt (using Peter Westwood’s
   PJW Page Excerpt allowing me to add excerpts to a page) as well as a thumbnail
   added using a Custom Field. I’ve seen how to do this with posts or to pull the
   Custom Fields for the current page but not seen it like this for pages.
    Regards,
   Edward

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years ago](https://wordpress.org/support/topic/wp_query-with-pages/#post-1056011)
 * The [template tag](http://codex.wordpress.org/Template_Tags), [query_posts()](http://codex.wordpress.org/Template_Tags/query_posts),
   supports the argument **post_type=page**.
 *  Thread Starter [steadyedd](https://wordpress.org/support/users/steadyedd/)
 * (@steadyedd)
 * [17 years ago](https://wordpress.org/support/topic/wp_query-with-pages/#post-1056150)
 * Thank you MIchael. That at least allows me to make a start. Can I expand the 
   parameter? For example query_posts(‘post_type=page&id=1,4,6,9’) – I want to return
   more than 1 page.
    Regards,
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years ago](https://wordpress.org/support/topic/wp_query-with-pages/#post-1056229)
 *     ```
       $args=array(
          'post_type'=>'page',
          'post__in' => array(1,4,6,9)
       );
       query_posts($args);
       ```
   
 *  [droope](https://wordpress.org/support/users/droope/)
 * (@droope)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/wp_query-with-pages/#post-1056352)
 * Thank you 🙂
 * This has been really helpful.

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

The topic ‘WP_Query with pages’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [droope](https://wordpress.org/support/users/droope/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/wp_query-with-pages/#post-1056352)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
