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?
- The topic ‘How to retrieve multiple pages using query_posts?’ is closed to new replies.