外掛說明
如果了解 Google 相簿、Timehop 或 Facebook 動態回顧這幾項服務,應該會很喜歡這類對過往生活中發生過的人事物的小提醒。這個外掛提供的小工具會為網站提供這項功能。
這個小工具會如 Google 相簿所提供的功能,會在網站上顯示過去幾年以同一天為準、約一週內所發佈過的文章。可以設定的顯示條件入如下:
- 可回顧的年份上限
- 文章顯示數量上限
- 可選取回顧內容的內容類型
- 是否顯示內容縮圖
- 是否要依照年份將文章進行群組
- 回顧的文章是否要與發佈日期完全相符、回顧年份上限、或以發佈日期為準一週內
橫幅圖片:@rirri01
安裝方式
- 通常只需要前往 [外掛]→[安裝外掛] 中,然後搜尋外掛並完成安裝及啟用。
- 然後前往 [外觀]→[小工具] (或 [外觀]→[自訂]) 以設定小工具及小工具要顯示於哪個小工具區域。
常見問題集
-
如何自訂這個小工具的外觀?
-
You have 3 ways to do so.
- 為網站新增自訂 CSS 程式碼,自訂
.posts_on_this_day容器及其內容,以符合網站外觀所需。 - 如果對 PHP 有一定的熟悉度,可以將程式碼片段加入至
jeherve_posts_on_this_day_post_markup篩選器中,以自訂小工具中的單篇文章的外觀。舉例來說,這是變更單篇文章顯示圖片尺寸的好方法。 - You can also use the
jeherve_posts_on_this_day_widget_before_postsandjeherve_posts_on_this_day_widget_after_postsfilters to add extra markup around the list of posts in the widget.
- 為網站新增自訂 CSS 程式碼,自訂
使用者評論
2025 年 12 月 16 日
I have used this plugin for years and have always loved it – it’s great if you have posts buried from long ago that deserve some limelight, and if you enjoy seeing what you were writing about in years past. It works perfectly for its intended purpose and offers a decent amount of flexibility, and the developer is very responsive to issues and feedback.
2025 年 5 月 12 日
3 則留言
Он только делает список все постов за этот день. На нашем сайте их сотни. Нам столько не надо. Нам надо выбрать из них. Этого нет.
參與者及開發者
變更記錄
[1.5.7] – 2026-02-27
- General: the plugin now requires PHP 8.3.
- Query: use the site’s configured timezone instead of UTC when determining “today”, fixing a bug where the widget could show yesterday’s posts on sites with non-UTC timezones.
- Caching: fix cache duration calculation to use consistent timezone-aware DateTime objects, and include the current date in the cache key for more reliable daily invalidation. Props @mrclicko.
[1.5.6] – 2025-12-16
- Widget: add 2 new filters,
jeherve_posts_on_this_day_widget_before_postsandjeherve_posts_on_this_day_widget_after_posts, allowing one to add extra markup around the list of posts in the widget.
[1.5.5] – 2023-05-08
- Widget: add a new filter,
jeherve_posts_on_this_day_widget_year_heading, allowing one to customize the heading used to display years in the widget.
[1.5.4] – 2023-04-27
- Query: do not display private and password-protected posts in the widget.
[1.5.3] – 2021-08-06
- Query: create new filter to allow setting a custom amount of years to fetch posts.
[1.5.2] – 2021-04-15
- Caching: cache data until midnight of the same day, instead of caching it for 24 hours.
[1.5.1] – 2021-04-13
- Add an option to only search for posts on the exact day, years past.
- Improve the display of each post when no post thumbnail can be found.
[1.5.0] – 2021-03-19
- Check for types more strictly.
- The plugin now requires PHP 7.1.
[1.4.1] – 2021-03-08
- Avoid displaying posts twice.
[1.4.0] – 2021-03-08
- Add option to pick post types.
[1.3.0] – 2021-03-08
- Add option to group by year.
[1.2.0] – 2021-03-08
- Add option to display post thumbnails.
[1.1.3] – 2021-03-07
- Update plugin URI for public release.
[1.1.2] – 2021-03-07
- Initial public release.

