Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.4   Updated Sunday, February 22nd, 2009 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

  If you have found this page useful, please consider donating. Thanks!

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: « 7 6 5 4 3 2 [1] Show All

  1. [...] Dagon Design – This Day: 「歷史上的今天」查看過往的今天寫了些什麼文章 [...]

  2. [...] 找了好久,終於找到這樣的 plugin 了。我是在 Dagon Design 看到的,plugin 名稱叫「This Day」,安裝方法超簡單的。 [...]

  3. Suppose I have 366 posts on every single day of 2005 year but no post of 2006. I want to show “on this day’s” post of the past year on the home page. For example, today is Oct 01 and I have no post of Oct 01, 2006, but my home page will show the post of Oct 01, 2005. Is that possible?
    Thank You.

  4. thanks

  5. sindhu: Can you email me the contents of your sitebar file? You were not really rude, it just sounded demanding :P

  6. when the write the php code enclosed within the div box int he sidebar….its says something like this “/homepages/13/d164545791/htdocs/synful/wp-content/themes/hyperballad/sidebar.php on line 85″ ???? am confused.

  7. ask nicely? i think i did. if i was rude, i dont understand where though….:( well i apologise

  8. sindhu: You could have asked nicely :P Try this:

    <?php ddtd_show_posts(); ?>

  9. something like maybe i guess

    help me out!

  10. hey there, need help very quickly, i use The hyperballad theme. uhm ur plugin isnt showing up in action in my blog, ive installed everything as sed…uhm can tell me the code like that to manually place the dis day las month plugin in my side bar ???

  11. thanks for the tip

  12. nchenga: Yes, this is intentional. If you want to change it, find this line in the plugin:

    if (is_single()) {

    And change it to this:

    if (is_single() || is_home()) {

  13. the links only show up when I view the posting. They do not display in the posting on the main page.

    i.e. http://www.chiperoni.org/wordpress/archives/2006/06/24/bike-tours/ vs http://www.chiperoni.org/wordpress/

    Is this intended?

    regards,
    nchenga

  14. Thanks :) Glad you like it. I also noticed that you posted some nice comments on some of the other articles. Always nice to see happy users :)

  15. This is a great idea, and it promotes older blog posts – useful for me as I lost access to my Haloscan and Blogger comments when I moved to using WordPress on my own domain in January 2006. As I’d maintained my blog going back to August 2004, I was peeved to lose access to the many comments folks had left but I was at least able to import the majority of my Blogger posts themselves into WordPress, and figured I could live with the loss of old comments given the many advantages of switching to WordPress. Still, this plugin now means my older posts can get some exposure to the light once again! Hopefully they might get new comments, or at least they stand more chance of being read – which is, after all, the reason most of us blog, to see our stuff get out there and find a readership! Thank you again. Your plugins are marvellous. I really do wish all plugin developers would take their lead from you in terms of clear instructions and well-crafted PHP code.

Pages: « 7 6 5 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.