Today I wanted to create a page on my website to display the 20 most recent posts. If this was the home page of the website, it would be no problem since WordPress does that by default. But this new page was an interior page.
The fix was simple. I used query_posts to grab all published posts like so:
<?php query_posts ('post_status=publish'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> ....
What are some other ways to do this?