Title: Today&#039;s Date Inserter
Author: mulscully
Published: <strong>2014 年 4 月 29 日</strong>
Last modified: 2014 年 8 月 19 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/todays-date-inserter.svg)

# Today’s Date Inserter

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

[下载](https://downloads.wordpress.org/plugin/todays-date-inserter.zip)

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

 [支持](https://wordpress.org/support/plugin/todays-date-inserter/)

## 描述

Simply and quickly add the current date and or time to your wordpress posts by using
a simple shortcode in the text of your page or post. Simply use the short code [
todaysdate] in your text and when the post or page is displayed, [todaysdate] will
be replaced by the current date and/or time that you defined on the settings screen.

You can also override the default format by including the format string in the shortcode.

For example, if you placed the following text in your post and your format string
was set to l, F jS Y
 -> Thank you for visiting my site today [todaysdate].

The date would be displayed as
 -> Thank you for visiting my site today Wednesday,
April 23rd 2014.

Here how to override he default setting by including the format string in the shortcode

[todaysdate format=”F Y”] would display April 2014 no matter what the default was
set to.

This plugin also includes a Today’s date widget. This widget has it’s own default
format, but can be overridden by and valid php date format string

The plugin also uses the timezone settings from wordpress to display the time and
date.

## 安装

 1. Upload `lfo-todays-date-inserter` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

  How do I add the date/time to my post?

Simply insert the following code into your post to display the current date/time.

[todaysdate]

  How to I control the way the date or time is displayed?

In the wordpress dashboard, go to Settings->Todays date and in the box labeled “
Enter the format string here” enter the format string you would like to use.
 For
a complete list of options visit http://www.php.net/manual/en/function.date.php

  Do I have to use the same format for every post?

No. You can override the saved format by including the format string in the shortcode.
For example using the shortcode [todaysdate format=”F Y”] will display April 2014

## 评价

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

### 󠀁[Warning: Illegal string offset 'format'](https://wordpress.org/support/topic/warning-illegal-string-offset-format/)󠁿

 [Ma Manann](https://profiles.wordpress.org/mamb2bceo/) 2016 年 9 月 3 日

Warning: Illegal string offset 'format' in /home/…./public_html/wp-content/plugins/
todays-date-inserter/lfo-todays-date-inserter.php on line 79

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

### 󠀁[Broke WP-Statistics](https://wordpress.org/support/topic/broke-wp-statistics/)󠁿

 [shogunreaper](https://profiles.wordpress.org/shogunreaper/) 2016 年 9 月 3 日

Plugin worked as expected, but it broke WP-Statistic's time, instead of being on
the timezone i set on the forum it was 5 hours behind.

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

### 󠀁[Nice, Quick Solution](https://wordpress.org/support/topic/nice-quick-solution/)󠁿

 [Eric Karkovack](https://profiles.wordpress.org/karks88/) 2016 年 9 月 3 日

Needed something to easily show the current month on a WordPress page. Without the
ability to directly edit the template, this plugin came in very handy.

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/todays-date-inserter/reviews/)

## 贡献者及开发者

「Today's Date Inserter」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Today's Date Inserter」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/todays-date-inserter)

### 对开发感兴趣吗?

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

## 更新日志

2014-08-19 version 1.2.1
 Corrected a Typo in the default date string. The default
will now display as Tuesday, August 19th 2014 instead of Tuesday, August, 19,th 
2014 Thank you hannah!

2014-04-29 version 1.2.0
 Added a Date widget

2014-04-25 version 1.1.1
 corrected minor typos in readme.txt file

2014-04-24 version 1.1
 added the ability to override the stroed format by including
the format string in the shortcode

2014-04-22 version 1.0

## 额外信息

 *  版本 **1.2.1**
 *  最后更新：**12 年前**
 *  活跃安装数量 **700+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/todays-date-inserter/)
 * 标签
 * [current date](https://cn.wordpress.org/plugins/tags/current-date/)[current day](https://cn.wordpress.org/plugins/tags/current-day/)
   [current month](https://cn.wordpress.org/plugins/tags/current-month/)[date](https://cn.wordpress.org/plugins/tags/date/)
   [todays date](https://cn.wordpress.org/plugins/tags/todays-date/)
 *  [高级视图](https://cn.wordpress.org/plugins/todays-date-inserter/advanced/)

## 评级

 4.3 星（最高 5 星）。

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

[您的评价](https://wordpress.org/support/plugin/todays-date-inserter/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/todays-date-inserter/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/todays-date-inserter/)

## 捐助

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

  捐助此插件