On This Day Plugin

Ok. Since it’s been asked for, I put together a beta (it Really needs to be tested) of an “On This Day” plugin. Basically, it will display to you prior entries made on the day the visitor visits your site. i.e. if they happen to visit on 4/20/04, it will show all entries (or as many as you specify) for 4/20 prior to this year. This should work, but a couple people might have issues with it. That’s why I’m releasing it as beta 1.

I’m sure there will be requests for features in it, which is another reason I’m releasing it as beta. All instructions are within the ZIP file, please read and try it out!

pi.onthisday.zip

How does this post make you feel?
  • Excited
  • Fascinated
  • Amused
  • Bored
  • Sad
  • Angry
This entry was posted in Uncategorized by Yoshi. Bookmark the permalink.

2 thoughts on “On This Day Plugin

  1. I’ve been looking all over for something like this.  Thanks. My only question is if there is a way for each individual post to have a link back to posts written on that same date?

    For example, all entries written on 4/20 (regardless of the year) would be linked on 4/20/04, but all entries written on 4/19 would be listed on 4/19/04.

    Only listing previous entries for a current date is a bit more limited than what I’m wanting.

  2. Actually, this plugin would now be a moot plugin. Because you can specify the year, month, day within the weblog tag, you wouldn’t need this. It would just merely take some ingenuity to get things running on that respect.

    For a post to link back to a page that has all the individual posts of that certain date, would require using a specialty template that used the month and day as the limitation of what weblog entries to make. Doing it any other way, simply wouldn’t work unless you were to create a custom weblog entries tag, in which case, that would be like reinventing the wheel when it could be accomplished by using segments and the exp:weblog:entries tag.

    Perhaps an example would be:

    {exp:weblog:entries year="2001" month="11" day="16" dynamic="off}<br /<

    …<br /<

    {/exp:weblog:entries}<br /<

    <br /<

    that would display all the entries for that 11/16/01. To do multiple years, unfortunately you would have to use separate tags, but I think it’s a bit more efficient this way.<br /<

    <br /<

    This way, you can use all available tags within the weblog entries tag, which makes this method instead of a “onthisday” plugin much more versatile.