How to Show all posts WordPress

I was surfing my Moblog archive and I noticed it was showing pagination.

Use the query_posts function just before the Loop.

Show All Posts

query_posts( 'posts_per_page=-1')

Full Code

WordPress Codex Reference: query_posts

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*