How to list all posts in a page

There might be a situation where a WordPress blog visitor would want to see an archive page with a complete list of all posts in a page. Not only they can be of help to widen the scanning area of which post they might want to read, but also improving the time of visitors at a certain page or post in terms of SEO because they have a wide list of posts to read after that by directly going to the archive page. The only drawback to it is the page would take quite some time to load all the complete post in the blog if they contain lots of images or videos. We can always use excerpt to level that. Follow us on how to list all posts in a page like our archives page!

To achieve this purpose simply create a .php extension file according to whatever name you like. In this example, name it archives.php. Paste the code below onto it. Name the template as All posts or whatever you like.

[sourcecode language=’php’] 

  • egy hots

    hello this a good article but I need to display posts of specific category in a page like this example how can i make it