fbpx

How to create a list of all WordPress blog posts

Lifelog

Conrad Bangkok.. Extended exposure photo…

image

The need

I needed this myself. I am new to the WordPress platform.

I wanted to add a page containing all my post titles for a simple reason. I don’t want to repeat the same post. Trust me it can happen!

So I did lot of R&D and finally found this simple method. No programming is necessary.

As a result I added the All Posts page to this blog.

The solution: WordPress archives Shortcode

    1. Go to WordPress admin page
    2. Go to Pages and Add New Page
    3. In the visual editor (no need to go to the text editor) type
      [ archives order=asc]
    4. Save and publish the pageWordPress archives
    5. That’s it. The page now lists all the posts in ascending order (oldest first)All WordPress posts

There are many other options available for refining the archive list. These modifiers are documented at Archives Shortcodes.

Problem

I wanted a serial number before each post. There is a before and after tag. But it did not work as the already has a

    tag around it. So OL and LI was ignored.

Better method

Then I found a better shortcode called [ display-posts]

This one gives much more customization options.

The final shortcode gave me exactlly what I wanted.

[ display-posts wrapper=”ol” order=asc display-posts posts_per_page=”500″ include_date=”true” date_format=” : j M y” ]

Here is the final result – All Posts Page

List of blog posts in WordPress

Queries | Comments | Suggestions | Wish list