WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to retrieve multiple pages using query_posts?

[Resolved] How to retrieve multiple pages using query_posts?

  • According to codex, you can use query_posts to retrieve a specific page:

    <?php query_posts('page_id=7'); ?>

    So how do you retrieve multiple pages using query_posts? I tried this (which works fine when you retrieve posts for multiple categories):

    <?php query_posts('page_id=3,5,7'); ?>

    Unfortunately, this only retrieves page_id 3, not all of them. Any ideas?

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] How to retrieve multiple pages using query_posts?’ is closed to new replies.
Skip to toolbar