外掛說明
如果了解 Google 相簿、Timehop 或 Facebook 動態回顧這幾項服務,應該會很喜歡這類對過往生活中發生過的人事物的小提醒。這個外掛提供的小工具會為網站提供這項功能。
這個小工具會如 Google 相簿所提供的功能,會在網站上顯示過去幾年以同一天為準、約一週內所發佈過的文章。可以設定的顯示條件入如下:
- 可回顧的年份上限
- 文章顯示數量上限
- 可選取回顧內容的內容類型
- 是否顯示內容縮圖
- 是否要依照年份將文章進行群組
- 回顧的文章是否要與發佈日期完全相符、回顧年份上限、或以發佈日期為準一週內
橫幅圖片:@rirri01
安裝方式
- 通常只需要前往 [外掛]→[安裝外掛] 中,然後搜尋外掛並完成安裝及啟用。
- 然後前往 [外觀]→[小工具] (或 [外觀]→[自訂]) 以設定小工具及小工具要顯示於哪個小工具區域。
常見問題集
-
如何自訂這個小工具的外觀?
-
有 2 個方式可以自訂這個小工具的外觀:
- 為網站新增自訂 CSS 程式碼,自訂
.posts_on_this_day
容器及其內容,以符合網站外觀所需。 - 如果對 PHP 有一定的熟悉度,可以將程式碼片段加入至
jeherve_posts_on_this_day_post_markup
篩選器中,以自訂小工具中的單篇文章的外觀。舉例來說,這是變更單篇文章顯示圖片尺寸的好方法。
- 為網站新增自訂 CSS 程式碼,自訂
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
[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.