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

Days Until

外掛說明

Originally I used the “Countdown Timer” plugin written by Andrew Ferguson to accomplish what I wanted,
however, his implementation to output in just days also outputted extraneous text that I was
not interested in. On top of that, the actual count algorithm was flawed. Rather than hack
this plugin to pieces to get the output I needed, I decided to just roll my own.

This is a bare bones, no-frills plugin since this is my first attempt at it. This means no
fancy options or configuration screens.

To use the plugin, simply install it and then use the following shortcode to output the number
of days until a given date in its place:

[days_until date=”SPECIFIC DATE”]

Where “SPECIFIC DATE” can be any text that that PHP’s strtotime function can understand.

安裝方式

This section describes how to install the plugin and get it working.

e.g.

  1. Upload daysuntil.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place [days_until date="SPECIFIC DATE"] in your content

常見問題集

None yet.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Days Until〉的開發相關工作。

參與者

將〈Days Until〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.1

  • Just now realized that the instructions in the readme were wrong (missing the date attribute), functionally nothing else changed.

1.0

  • The genesis