Title: Simple Text Only Countdown
Author: deuts
Published: <strong>2016 年 6 月 17 日</strong>
Last modified: 2018 年 11 月 9 日

---

搜索插件

![](https://ps.w.org/simple-text-only-countdown/assets/banner-772x250.jpg?rev=1438277)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/simple-text-only-countdown/assets/icon-256x256.jpg?rev=1438282)

# Simple Text Only Countdown

 作者：[deuts](https://profiles.wordpress.org/deuts/)

[下载](https://downloads.wordpress.org/plugin/simple-text-only-countdown.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-text-only-countdown/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-text-only-countdown/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-text-only-countdown/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-text-only-countdown/#developers)

 [支持](https://wordpress.org/support/plugin/simple-text-only-countdown/)

## 描述

A simple countdown shortcode plugin that displays just the text. No flash nor javascript
for live timer effect, nor styles, just plain text. Perfect for in-line text-based
countdown timer. Visitors need to refresh the browsers in order to update the countdown.

#### USAGE

When you’re done installing the plugin, just put a `[cntdwn todate="9 January 2019
08:00" timeoff="0"]` shortcode into your content. Make sure to change the `todate`
parameter to your target date, and `timeoff` to the GMT offset (in hours) of the
time indicated in the `todate`.

Anything that can be parsed by the `strtotime` php function can be used in the `
todate` parameter. But in order to avoid confusion, it’s better to stick with the
format as the sample above.

See the Frequently Asked Questions for the complete parameters available and their
default values.

## 安装

 1. Upload the `simple-text-only-countdown` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in your WordPress installation.

## 常见问题

  How to use this plugin?

 * When you’re done installing the plugin, just put a `[cntdwn todate="9 January
   2019 08:00" timeoff="0"]` shortcode into your content. Make sure to change the`
   todate` parameter to your target date, and `timeoff` to the GMT offset (in hours)
   of the time indicated in the `todate`.

  What are the other parameters available?

The complete parameters that you may use in the shortcode, and their default values,
are:

 * `todate` -> target date to where we’re counting down to;
 * `timeoff` -> GMT offset time. Default is 0 or UTC;
 * `sep` -> the separator to use in between days, hours, etc. Default is `', '`.
   Feel free to change it to `<br />` or otherwise.
 * `showhours` -> Show number of hours remaining? Default is `1` for true. The `
   todate` may be too far in the future that render hours irrelevant.
 * `showmins` -> Show number of minutes remaining? Default is `1` for true. See `
   showhours` above.
 * `showsecs` -> Show number of seconds remaining? Default is `0` for false. Seconds
   may only be relevant for countdowns with live timers.
 * `pretext` -> The text before the countdown text. Default is `'The event starts
   in '`;
 * `posttext` -> The text following the countdown text. Default is `'.'`;
 * `donemsg` -> The text message when the countdown is done. Default is `'The countdown
   is done.'`.

  What’s the standard format for the `todate` parameter?

 * Anything that can be parsed by the `strtotime` php function can be used in the`
   todate` parameter. But in order to avoid confusion, it’s better to stick with
   the format as the sample above.

  How to put the countdown in my theme files?

 * The do_shortcode() can do that for you.

  Is there a widget available for the sidebar?

 * No. But [this article](http://www.wpbeginner.com/wp-tutorials/how-to-use-shortcodes-in-your-wordpress-sidebar-widgets/)
   can show you how to use a shortcode in the sidebar widget.

  Is there a working demo for this plugin?

 * If the target date hasn’t come yet, you might see a working demo of the plugin
   at [ChessHive](http://chesshive.com/working-demo-of-simple-text-only-countdown-plugin/).

## 评价

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

### 󠀁[Perfect for simple applications](https://wordpress.org/support/topic/perfect-for-simple-applications/)󠁿

 [Justin Jackson](https://profiles.wordpress.org/bizboxjj/) 2017 年 11 月 24 日

Perfect if you just need an in-line text-based countdown timer.

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

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

 [paburmester](https://profiles.wordpress.org/paburmester/) 2016 年 11 月 10 日 
2 回复

Great plugin! simple but makes exactly what they offer. It will be great if we can
personalize also “years”, “months”, “days”, “hours”, “minutes” and “seconds”, so
we can translate them completely.

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/simple-text-only-countdown/reviews/)

## 贡献者及开发者

「Simple Text Only Countdown」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ deuts ](https://profiles.wordpress.org/deuts/)

[帮助将「Simple Text Only Countdown」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-text-only-countdown)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-text-only-countdown/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/simple-text-only-countdown/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/simple-text-only-countdown/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-text-only-countdown/)。

## 更新日志

#### 1.2.0

 * Bug fix to get rid of “A non well formed numeric value encountered” error.
 * Updated descriptions.

#### 1.1.0

 * Changed function name to make it more unique and avoid conflicting with other
   functions.

#### 1.0

 * Original version.

## 额外信息

 *  版本 **1.2.0**
 *  最后更新：**8 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-text-only-countdown/)
 * 标签
 * [countdown](https://cn.wordpress.org/plugins/tags/countdown/)[php](https://cn.wordpress.org/plugins/tags/php/)
   [simple](https://cn.wordpress.org/plugins/tags/simple/)[text-only](https://cn.wordpress.org/plugins/tags/text-only/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-text-only-countdown/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/simple-text-only-countdown/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/simple-text-only-countdown/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-text-only-countdown/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-text-only-countdown/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/simple-text-only-countdown/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-text-only-countdown/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-text-only-countdown/reviews/)

## 贡献者

 *   [ deuts ](https://profiles.wordpress.org/deuts/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-text-only-countdown/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://chesshive.com/donate/)