Version 1.4   Updated Saturday, September 22nd, 2007 at 8:20pm

This Day Plugin for WordPress

After every post, this plugin will list other posts on the same day from other years. Options include adjusting the number of posts to show, changing the sort order, the header text, hiding password protected posts, and more.

Download

Instructions

  • Download the above file, rename it from .txt to .php, and upload it to your plugins directory
  • Enable the plugin
  • Configure the plugin options (under DDThisDay)
  • Test it out by viewing a post. Of course for it to display anything, there must be at least one other post with the same month and day as the one you are looking at

Change Log

  • 09-22-07 Version 1.4 - Option added to hide password protected posts (they were hidden by default before). Non-published posts no longer show up in the list. Added ‘Load Default Options’ button.
  • 05-16-07 Version 1.3 - Updated for WordPress 2.2
  • 04-07-07 Version 1.2 - Updated for WordPress 2.1
  • 01-02-07 Version 1.1 - Modified to only list posts
  • 04-04-06 Version 1.0 - First release

Notes

This plugin will not display anything (not even the specified header text) if there are no matching posts. So if it does not seem to be working, make sure you are viewing at a post that has other posts on the same day.

Options

Here are the options available in this plugin’s options page in the WordPress admin panel.

Max posts to show

This allows you to set a limit on the number of posts that will be displayed. Set this to 0 for no limit.

Sorting

You can choose to list newest or oldest posts first.

Header text

This will be shown before the list of posts.

Show other posts from today

Enabling this will show other posts from the exact same date as the post being viewed (otherwise it will only check other years).

Show the year

If enabled, this will show the post year after each post in the list.

Hide password protected posts

If enabled, password protected posts will not show up in the list.

Pages: [4] 3 2 1 » Show All

  1. 53
    shioiri

    Thank you.
    I have an idea for this plug-in.
    When I using MovableType,
    I used combi of MTOnThisDay and MTCollect.
    It solves to display the entry list with its img thumbnail.
    Do you solve this idea?

  2. i was wondering if this plugin is capable of displaying one post every day on the front page. like, every june 16th it will display the post from june 16th on the homepage without having to do anything. basically to have 365 posts that will rotate on the “home page”

  3. Version 1.4 has been released

    An option has been added to hide password protected posts (they were hidden by default before). Non-published posts no longer show up in the list. A ‘Load Default Options’ button has also been added to the options page.

    This latest version has been tested with WordPress 2.3, and will still work in previous versions as well.

  4. could you please add an option (or set it default) to list only “published” post ? It shows all posts currently, including draft …

  5. Dgold: It would be possible yes, with modifications.

  6. 48
    Dgold

    Hi! Thanks!

    Is it possible with this plugin, to show: not posts from the “exact” day of a previous year, but instead show the “most recent post to this day each year-previous”. In other words, the whole week 1 year ago, the whole week 2 years ago, ec.

    For example, today is May 22, 2007. I want to show posts from May 17-22, 2006+2005+2004+2003.

  7. Hi, just changed to use latest v1.2. I commented off line 222 add_filter(’the_content’, ‘ddtd_generate’); to customize the position where DD-THIS-DAY shows posts. But the change breaks wordpress. When I activated the plugin, WordPress reported an error but the plugin was activated, but from now on my webpage layout was broken. It seems some extra char is inserted. Can you check this? Thanks.
    I’m using latest WordPress v2.1.3.

  8. ijliao: What version of WP are you using?

Pages: [4] 3 2 1 » Show All

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.