Display all the WordPress posts on one page

Are you looking to display all the WordPress posts on one page without using any WordPress plugin, then you are on the right page. In this post, I have shared a simple code snippets which will display the all Published post from your WordPress site.

How to display all the WordPress posts on one page

Create a template inside your theme folder and copy paste the below code after template header.  For displaying all posts that has been published. You have to use post_per_page=’-1′.

How to create Template header in WordPress

Add the below code in top of your template file.


If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.