這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Todayish in History

描述

If your blog posts from the same time of year are relavant each and every
year, then this is the plugin for you. Todayish In History shows a list of
links to blog posts from your blog which were posted in previous years at
about the same date as today.

The plugin is named Todayish because if there isn’t a blog post from today’s
date in previous years it will use the blog post which is the least
number of days away from todays date.

Todayish in History provides a function for use in themes as well as a
widget for use in your sidebar.

螢幕截圖

  • Todayish in collapsed form in a theme.
  • Todayish expanded in a theme.
  • Todaysih widget in vertical mode.
  • Todayish widget in horzontal mode.
  • Todayish widget options.

安裝

  1. Unzip the todayish_in_history.zip file to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

If you want to use the widget:

  1. Place the Todayish In History in a sidebar using the WordPress Widgets tool in the Appearence menu
  2. Change the settings if desired

If you want to use Todayish In History in your theme:

  1. Place

    <?php todayish_in_history(); ?> 
    

    in your template

  2. You can optionally set the following parameters

    • parameter (default,type) — Description
    • limit (100,int) — How many years of history to show
    • title (Todayish In History,string) — The title displayed next to the dropdown
    • class (horizontal,css legal string) — The class added to the outermost div for styling purposes
    • width (200px,valid css width) — How wide should the dropdown be.
    • iswidget (FALSE,boolean) — If TRUE adds class ‘widgettitle’ to h2 widget title
    • ‘max_days_off’ (int/365) The max number of days away from today’s date to search
    • ‘range’ (bool/FALSE) Use the fixed range_start/range_stop fields?
    • ‘range_start’ (int/0) Start year in fixed range
    • ‘range_stop (int/date(‘Y’)) Stop year in fixed range

By default the dropdown drops directly down, and titles too wide for the
drop-down are truncated. To change this behavior so that the dropped-down list
is as wide as it needs to be, see the comment in todayish_in_history.css

常見問題

What’s a use case for this thing?

I am entering my 3rd year of garden blogging. Every year the same types of things
are applicable in the same season of the year. Other seasonal topics like
hunting, fishing, sports, etc. may also find this sort of thing useful.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Todayish in History” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Todayish in History 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

0.2

Added option to use fixed date range. Added option to limit proximity to
current date — eg. Only show posts from previous years within 30 days of
today.

0.1.1

Fix to use sidebar’s title size instead of hard coded h2. Added !important to
commented out CSS that enabled full text links to appear.

0.1

  • Welcome to Todayish In History