How To Add Post Date To Your List Of Recent Posts

by Yan Susanto on May 20, 2008

The WordPress function wp_get_archives(’type=postbypost’) displays a lovely list of posts, but sadly to say, it won’t show the date of each post. Now, whether to show the post date or not is up to each individual taste. I’m in the opinion that having a post date will increase readability which is good from users’ perspective.

Thanks to the DateMe WordPress plugin by ardamis.com, I am now able to add and display post date to those ‘postbypost’ lists, just like the one I have on my 404 page. I find this to be more informative than the standard WordPress post-by-post list. Don’t you think so?

Let’s put a date where it should have been, shall we?

1. Download DateMe WordPress Plugin.
2. Upload it to wp-content/plugins and activate it.
3. Replace with
4. You are done. Easy, isn’t it?

FYI you can use all of the wp_get_archives() parameters except ‘type’ and ’show_post_count’ (limit, format, before, and after). To limit the no. of posts to be displayed, say you want it to be 10, just set the parameter like this

For further customization of the post date display, please refer to a plugin for adding the post date to wp_get_archives.

So what’s you thoughts on this? Is it necessary or a complete waste of time?

Related posts

Sponsor of The Month

{ 6 comments }

Chip May 25, 2008 at 4:14 pm

I really needed this for a blog community I just developed. I’m trying to add as many useful features as possible. I’m also using a combined technique to sort them using your tutorial.

Yan May 25, 2008 at 5:55 pm

Glad you find it useful. We all should strive to add more value to our blog and thinking from the user’s point of view.

BTW what community blog you are developing?

Chip May 27, 2008 at 1:36 am

It’s a local blogs community, something like blogspot.com or wordpress.com, only on a smaller scale. And it’s Romanian. I’m trying to find beginners who want to start blogging. I help them with advice, tips and a place to blog.

The address is http://clubcafe.org/, however, I don’t think you’re speaking Romanian. :P

Yan May 27, 2008 at 2:26 am

Oh it’s so foreign to me. Just not quiet sure how you arrive at choosing the name ‘clubcafe’.

Anyway, I wish you all the best in whatever you do and I’ll see you around, Chip.

moserw July 23, 2008 at 9:40 am

I will check it out. I am using Related Posts on my blog and even that needs some tweaking and customization. Guess I can even try out the dates with the customization and see how it goes.

Jonas March 2, 2009 at 8:55 pm

Where do i do this?
(Replace with
I dont know in what file to do this?

Previous post:

Next post: