Displaying pages as posts
Okay… masters of WP gimme some love! I want to list a set of pages as if they were posts. I want to lay down some code as shown below:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<!– put display code here –>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
…and have it list out a set of pages. How do I isolate my post query so that have_posts() will return a given set of pages?
- The topic ‘Displaying pages as posts’ is closed to new replies.