Room 34 presents On This Day

Description

Room 34 presents On This Day is a simple widget that displays a list of blog posts that were published on the same date in previous years. Customization options include:

  • Title
  • Message to display if no posts are found
  • Maximum posts to display
  • Show featured images (if available)
  • Category filtering
  • Optional On This Day archive page (new in version 2.0)

Important: While not technically required, the new On This Day archive page assumes your theme includes an archive.php file that uses the the_archive_title() function to display the page title.

Installation

  1. Upload the plugin files to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Place the widget in one of your sidebars and customize as desired.

Note: This plugin requires PHP 5.3 or greater due to the use of anonymous functions.

FAQ

Why isn’t the archive page displaying the correct (or any) title?

If there’s an incorrect title, or no title, at the top of your page (before the title of the first post), check your theme. It should have an archive.php file, and that file must use the the_archive_title() function to display the page title.

Reviews

May 10, 2020
I'm not real big on leaving reviews in general but I'm leaving one here. If adding more reviews helps bring attention to this plugin and makes it more popular, so be it! I have blog entries and stuff I imported from previous platforms going back to 1996. I have been looking for a way to highlight some of this old content based on date, similar to how Slashdot.org does it in their "This Day on Slashdot" widget. The only thing is I couldn't find anything that would do it. There were plugins that would do "this day in history" and other criteria. But I couldn't find a plugin that would do it based on content entered in WordPress. The plugin its self is *very* easy to use. Install, activate, and add it as a widget wherever you want it. Done. There are some settings you can tweak regarding how many entries to show, what categories, etc. I had the whole thing up and running in five minutes.
January 14, 2020
I'm an outdoor writer and one day I realized: "I've got 15 years of content here!" I wanted a way to showcase that. This plug-in was just what I needed. My posts are all seasonal and deer and turkey hunting really don't change from year to year, so my readers have not only what I've recently written, but also years and years of stuff that I've written on the subject. Many thanks!
September 3, 2016
This is just a nice little plugin to show posts on the current day in previous years. I've been using it for a while now, and it works great.
Read all 4 reviews

Contributors & Developers

“Room 34 presents On This Day” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

2.5.1

  • Modified conditions to show current year’s posts in widget when “Use post date” is set.
  • Improved help text in widget configuration.
  • Added text domain to i18n functions in preparation for translation support.
  • Minor CSS tweaks in admin.

2.5.0.2

  • Fixed displayed publish date of posts to resolve issues when post’s publish time falls on a different date between local time and GMT/UTC+0.
  • Bumped tested up to version to 5.5.3.

2.5.0.1

  • Fixed incorrect callback function name in pre_get_document_title filter.

2.5.0

  • Replaced all closures in actions and filters with named functions to give developers more flexibility in working with the plugin.
  • Removed “On This Day” from archive page titles in keeping with the goal of avoiding any hardcoded front-end text until full i18n support is implemented.

2.4.1

  • Made ‘See all…’ text string editable in widget configuration. This was the only non-editable text displayed on the front end. Making this text editable will allow for easier use of the plugin on non-English language websites while full i18n support is in development.

2.4.0

  • Replaced uses of PHP date() and WordPress date_i18n() function with wp_date() for improved i18n support. (Full i18n support for all displayed text strings coming in a subsequent update.)

2.3.0

  • Removed “See all…” links when a date has no posts.
  • Removed “On This Post’s Date” when on archive pages.
  • Fixed logic for “See all…” pages to work with a specific (not today’s) date.

2.2.2

  • Added option to hide widget entirely when list is empty by leaving “Message to display if no posts are found” blank.
  • Modified logic for hiding redundant lists so that if two lists on the same page are both empty and “Message to display if no posts are found” is set, then they’ll still appear.

2.2.1

  • Added logic to prevent duplicate list of posts from appearing multiple times on one page. This allows creation of two widgets, one for showing today’s posts, and one for “Use post date” posts, for example.

2.2.0

  • Added “Use post date” option to widget. If set, when viewing an individual post, the widget will show posts from the same date as the current post, not today’s date. On main blog or archive pages, widget will still show posts from today’s date.

2.1.0

  • Added month/day filtering of Posts in admin to show all posts published on in given month/date.

2.0.2

  • Fixed handling of a global array variable to resolve fatal errors with WP-CLI.

2.0.1

  • Simplified date_query.

2.0.0

  • Added On This Day Archive page.
  • Refactored to use date_query instead of retrieving and then omitting posts from the current year.

1.5.3

  • Made featured images clickable links to posts.
  • Tested in WP 4.7.1.

1.5.2.1

  • Updated “Tested up to” to 4.7.

1.5.2

  • Fix for implode() warning when no categories were selected.

1.5.1

  • Updated plugin repository description text.

1.5

  • Added ability to filter list by category.
  • Added ability to set maximum number of posts to display.

1.4

  • Added option to display featured image with each post.
  • General refactoring and code clean-up.

1.3

  • Updated main function to use parent::__construct() for compatibility with WordPress 4.3.

1.2

  • Updated link structure to use standard permalinks instead of custom-built URL format.

1.1.1

  • Updated “Tested up to” tag.

1.1

  • Added CSS class to ul tag and changed tag and class attribute for each li item.

1.0

  • Original version.