Creating a list of all blog posts in WordPress

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: 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 pageimage
    5. That’s it. The page now lists all the posts in ascending order (oldest first)

      image

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

image

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s