Do you want to display all your WordPress posts on one page? Recently one of our readers wanted to create an archives page and show all WordPress posts on a single page. In this article, we will show you how to display all your WordPress posts on one page without pagination.
Why and When to Display All Posts on One Page?
WordPress comes with built in archive pages for each category, tags, author, and date.
Many site owners however prefer to create custom archives page for their site. The archives page usually highlight their popular posts, display a date based compact archive, list categories, or display tag clouds, and more. Take a look at pluginthemehub archives page as an example.
Some blogs prefer to simply display a list of all their WordPress post titles on one page.
While you could use the display posts shortcode to show excerpts, thumbnails, and other related information, we donβt recommend doing that. When you are listing all your posts on a single page, this page will be long, and you want to make sure itβs simple and fast. Just displaying post titles is sufficient for archives page of this style.
If you want to display posts on page based on category or other parameters, you can do so by following the detailed usage instructions on theirΒ documentation page.
Method 2: Using Simple Yearly Archive Plugin
Showing all your WordPress posts on a single page can make it too long to scroll. You can fix that by showing a list of each year. Users can then click on a year to expand it and see the posts published that year.
First thing you need to do is install and activate theΒ Simple Yearly ArchiveΒ plugin.
Upon activation, you need to go toΒ Settings Β» Simple Yearly ArchiveΒ page to configure plugin settings.
The plugin allows you to display list of posts in a variety of ways. You can show them all under links to yearly archives, or you can show them under collapsible years.
If you want to display them under collapsible years, then you need to add <div> and </div> next to the option βBefore / After (Year headline)β.
Rest of the plugin options are quite self-explanatory. You can set them up according to your needs.
Donβt forget to click on the save changes button to store your settings.
Now to display all your posts on a page, you just need to add [SimpleYearlyArchive]Β shortcode to the page of your choice.
The plugin provides a range of parameters that can be used with the shortcode. You can look at the parameters on pluginβsΒ documentation page.
Method 3: Display All WordPress Posts in One Page with Template Code
While using a plugin to display all posts in one page is the easiest way, some of you may want to learn how to do it with page templates code.
First you will need to create aΒ custom page templateΒ and copy the styling from your page.php file.
After that, you will use a loop below to display all posts in one page.
If the above code instructions does not make sense, the we recommend that you use method 1.
We hope this article helped you display all your WordPress posts on one page. You may also want to see our guide onΒ 8 proven methods to promote old posts in WordPress.
If you liked this article, then please subscribe to ourΒ YouTube ChannelΒ for WordPress video tutorials. You can also find us onΒ TwitterΒ andΒ Facebook.