Title: WP Chrono
Author: milan.latinovic
Published: <strong>2016 年 4 月 27 日</strong>
Last modified: 2018 年 10 月 21 日

---

搜尋外掛

![](https://ps.w.org/wp-chrono/assets/banner-772x250.png?rev=1968200)

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

![](https://ps.w.org/wp-chrono/assets/icon-256x256.png?rev=1968199)

# WP Chrono

 由 [milan.latinovic](https://profiles.wordpress.org/milanlatinovic/) 開發

[下載](https://downloads.wordpress.org/plugin/wp-chrono.1.5.4.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wp-chrono/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wp-chrono/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wp-chrono/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/wp-chrono/#developers)

 [技術支援](https://wordpress.org/support/plugin/wp-chrono/)

## 外掛說明

Do you need simple **CTM Content Time Management tool** ?
 Do you need to provide
users with content (i.e. Coupon Codes) only on specific time and date ? Do you want
to create Content Dripping on your web pages using nothing but shortcodes ?

**WP Chrono** provides you with predefined shortcodes for accomplishing various 
tasks related to controling WordPress content.

If you want to accomplish these things easy:

 * Show current time anywhere on your site
 * Show certain parts of your posts/pages on specific dates
 * Show certain parts of your posts/pages on specific date ranges
 * Create IF-ELSE rules for displaying your content, related to specific dates
 * Create lightweight countdown timer (plain JavaScript) with templating support

This plugin pays special attention to multilanguage compatibility and e-commerce
platforms compatibility:

 * WPML compatible (https://wpml.org/plugin/wp-chrono/)
 * WooCommerce Multilingual compatible
 * qTranslate compatible
 * WooCommerce compatible

Currently supported shortcodes:

 * [wpch-currentdate] – show current date & time
 * [wpch-ifdate] – show content on specific date
 * [wpch-ifdaterange] – show content on specific date range
 * [wpch-countdowntimer] – create lightweight countdown timer for your content (
   templates supported!)

Templates: darkblue, blue, darkpurple, purple, green, red, yellow

## 安裝方式

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

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use plugin shortcodes within your posts

## 常見問題集

  How to print current date and time?

Use this shortcode to preview current date anywhere in your content, and format 
it as you prefer.

 * [wpch-currentdate] – May 18th, 2016
 * [wpch-currentdate format=”F j, Y g:i a”] – May 18, 2016 9:44 pm
 * [wpch-currentdate format=”F j, Y”] – May 18, 2016
 * [wpch-currentdate format=”F, Y”] – May, 2016
 * [wpch-currentdate format=”g:i a”] – 9:44 pm
 * [wpch-currentdate format=”g:i:s a”] – 9:44:38 pm
 * [wpch-currentdate format=”M j, Y @ G:i”] – May 18, 2016 @ 9:44
 * [wpch-currentdate format=”Y/m/d \a\t g:i A”] – 2016/05/18 9:44 PM
 * [wpch-currentdate format=”Y/m/d \a\t g:ia”] – 2016/05/18 9:44pm
 * [wpch-currentdate format=”Y/m/d g:i:s A”] – 2016/05/18 9:44:38 PM
 * [wpch-currentdate format=”Y/m/d”] – 2016/05/18
 * [wpch-currentdate format=”g:i:s A”] – 9:44:38 PM
 * [wpch-currentdate format=”g:i:s P”] – 9:44:38 +03:00

  How to show customized content on specific date?

For example, create logic that will print some content specifically on 7th April,
year 2016.
 We will use wpch-ifdate shortcode with date attribute. Format of date
attribute **must be** yyyy/mm/dd, so our date entry will be “2016/04/07”, and short
code will look like this.

    ```
    [wpch-ifdate date="2016/04/07"]This is content that will be printed only on 7th April, year 2016.
    This content supports all WP editor native functions, so what you see if what you get. [else]This is
    part of the content that will be printed if day is not 7th April, so before or after it! :)[/wpch-ifdate]
    ```

  How to handle date ranges?

Example shortcode use for **date ranges between 1st April and 10th April of 2016.**

    ```
    [wpch-ifdaterange fromdate="2016/04/01" todate="2016/04/10" ]This is content that will be printed only for
    range 1st to 10th April, year 2016. This content supports all WP editor native functions, so what you see
    if what you get.[else]This is part of the content that will be printed if day is not within a
    given range.[/wpch-ifdaterange]
    ```

Example shortcode use for **date ranges between 1st March and 10th March of 2016.**

    ```
    [wpch-ifdaterange fromdate="2016/03/01" todate="2017/05/17"]
        This copy will be printed if range is between 2016/03/01 and 2017/05/17 :) :) YAY!
        For, example, we have some promo codes, which changes from day to day:
        [wpch-ifdate date="2016/04/20"]Promo code for today is: MyPromoCode-001[/wpch-ifdate]
        [wpch-ifdate date="2016/04/21"]Promo code for today is: MyPromoCode-002[/wpch-ifdate]
        [wpch-ifdate date="2016/04/22"]Promo code for today is: MyPromoCode-003[/wpch-ifdate]
        [wpch-ifdate date="2016/04/23"]Promo code for today is: MyPromoCode-004[/wpch-ifdate]
        [wpch-ifdate date="2016/04/24"]Promo code for today is: MyPromoCode-005[/wpch-ifdate]
        [else]
        This is part of the content that will be printed if day is not within a given range.
    [/wpch-ifdaterange]
    ```

  How to create Lightweight Countdown Timer?

Use one of predefined templates to quickly create light weight CountDown timer,

using this shortcode:

    ```
    [wpch-countdowntimer name="first" date="25 Dec 2018 13:30:00 GMT" template="darkblue"]
    This is content that will be previewed after counter finished countdown.
    Note: This content in CSS hidden, so it's visible inside code at client side.
    [/wpch-countdowntimer]
    ```

## 使用者評論

![](https://secure.gravatar.com/avatar/8bc5ea502918dbfc1d1bba036816906f74733b73c48b4166eb6e6e8f93e1180b?
s=60&d=retro&r=g)

### 󠀁[Perfectly Written, Perfect Execution](https://wordpress.org/support/topic/perfectly-written-perfect-execution/)󠁿

 [Ronald Garrison](https://profiles.wordpress.org/rgarrison/) 2018 年 5 月 9 日

Worked perfectly just as written. Installed and put the code on the page and boom
it worked with no config or anything. Nicely done

![](https://secure.gravatar.com/avatar/a10a64c9c45ee2b5b3468de00b3fabda253ab406952e506d8c44a99fabde5762?
s=60&d=retro&r=g)

### 󠀁[I was looking for this! 🙂](https://wordpress.org/support/topic/i-was-looking-for-this-4/)󠁿

 [blastoise365](https://profiles.wordpress.org/blastoise365/) 2018 年 3 月 21 日

I have a web site where I periodically make sales and provide time limited offers
and coupons. I was searching for a plugin to automate this and wp chrono does the
job! I would like to have more options thought, but the current ones work great.

![](https://secure.gravatar.com/avatar/57cb66d1b2c094de28352261e8efdeccbaf3f95816092e22bb88f910d6ae9822?
s=60&d=retro&r=g)

### 󠀁[Great and useful plugin](https://wordpress.org/support/topic/great-and-useful-plugin-30/)󠁿

 [djusasa252](https://profiles.wordpress.org/djusasa252/) 2017 年 11 月 15 日

Great and useful plugin for controlling your text post with this Content Time Management
tool.

![](https://secure.gravatar.com/avatar/33fea3ae5b8169cd3021016115b66c27563f7e774b3b6264cfe30acb4ae2d3ed?
s=60&d=retro&r=g)

### 󠀁[Exactly what I needed](https://wordpress.org/support/topic/exactly-what-i-needed-460/)󠁿

 [Todd Edelman](https://profiles.wordpress.org/toddedelman/) 2017 年 7 月 13 日

Was looking for a simple way to display current day/time via a short code within
a page and this plugin does it perfectly. Also developer offers great support!

![](https://secure.gravatar.com/avatar/a67f1a507f68af47116dac658d4496ddfbdb5bd005c51cbe80ca575042905cfb?
s=60&d=retro&r=g)

### 󠀁[Great](https://wordpress.org/support/topic/great-5310/)󠁿

 [jinox](https://profiles.wordpress.org/jinox/) 2016 年 12 月 31 日

Great!

![](https://secure.gravatar.com/avatar/7b78cb1064306ad17311861cf29ad55ca8ef52279e516290b703bbd3eef12df0?
s=60&d=retro&r=g)

### 󠀁[Nice one, working well](https://wordpress.org/support/topic/nice-one-working-well/)󠁿

 [Vuk Vukovic](https://profiles.wordpress.org/vukvukovich/) 2016 年 11 月 17 日

Tested this one with WPML and it works very well.

 [ 閱讀全部 10 則使用者評論 ](https://wordpress.org/support/plugin/wp-chrono/reviews/)

## 參與者及開發者

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

參與者

 *   [ milan.latinovic ](https://profiles.wordpress.org/milanlatinovic/)
 *   [ ljiljau ](https://profiles.wordpress.org/ljiljau/)

[將〈WP Chrono〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wp-chrono)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wp-chrono/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/wp-chrono/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/wp-chrono/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wp-chrono/)。

## 變更記錄

#### 1.5.4

 * Compatibility: Tested for WordPress 4.9.8

#### 1.5.3

 * Compatibility: Fixed issues when running on PHP 5- environments (Thanks to S.
   Djukic)

#### 1.5.2

 * Compatibility: Tested for WordPress 4.9
 * Documentation: Support forums and review links within admin panel. Share a love!
   🙂

#### 1.5.1

 * Compatibility: Tested for WordPress 4.8.3
 * Documentation: Additional improvements to plugin documentation

#### 1.5

 * Compatibility: Tested for WordPress 4.8
 * Resolved: Bug with local formats (Thanks @toddedelman for reporting)

#### 1.4

 * Compatibility: Tested for WordPress 4.7.2
 * Resolved: Bug with [wpch-ifdate] shortcode
 * Resolved: Bug with [wpch-ifdaterange] hour, minutes, seconds

#### 1.3

 * Added full support to WPML (Big thanks to WPML Compatibility Team, especially
   to Vuk Vukovic, Amit Kvint and Mohamed Khafaja)
 * Compatibility: Tested for WordPress 4.6.1

#### 1.2

 * Feature: Added new shortcode [wpch-countdowntimer] for light weight Count Down
   Timer
 * Feature: Added different templates for Count Down Timer
 * Documentation: Additional improvements to plugin documentation

#### 1.1.1

 * Compatibility: Tested for WordPress 4.5.2
 * Documentation: Description improved and code additionaly commented

#### 1.1

 * Feature: Added Time support to [wpch-ifdate] and [wpch-daterange] shortcodes
 * Feature: Added “Y-m-d G:i:s” format support to [wpch-ifdate] and [wpch-daterange]
   shortcodes

#### 1.0

 * Major: Initial version of WordPress Chronosphere plugin

## 中繼資料

 *  版本 **1.5.4**
 *  最後更新 **7 年前**
 *  啟用安裝數 **50+**
 *  WordPress 版本需求 ** 3.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.9.29**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-chrono/)
 * 標籤
 * [date](https://tw.wordpress.org/plugins/tags/date/)[page](https://tw.wordpress.org/plugins/tags/page/)
   [post](https://tw.wordpress.org/plugins/tags/post/)[shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
   [time](https://tw.wordpress.org/plugins/tags/time/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-chrono/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  10 個 5 星使用者評論     ](https://wordpress.org/support/plugin/wp-chrono/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/wp-chrono/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/wp-chrono/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/wp-chrono/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/wp-chrono/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-chrono/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/wp-chrono/reviews/)

## 參與者

 *   [ milan.latinovic ](https://profiles.wordpress.org/milanlatinovic/)
 *   [ ljiljau ](https://profiles.wordpress.org/ljiljau/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wp-chrono/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=milan.softline%40gmail%2ecom&item_name=WP%20Chrono&item_number=Support%20WP%20Chrono%20Open%20Source&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8)