How to Display All Posts on an Archive Page in WordPress

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:


Pretty nifty!

What are some other ways to do this?

Posted in ,

Toby Cryns

Toby Cryns is a freelance CTO, expert WordPress consultant, and teacher.

He offers free advice to improve your freelance biz.

He also publishes small droppings every now and then to and

Follow Toby's contributions on Github and