Title: Current Year Shortcodes
Author: Lukas
Published: <strong>2022 年 12 月 20 日</strong>
Last modified: 2024 年 1 月 3 日

---

搜索插件

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

![](https://ps.w.org/current-year-shortcodes/assets/icon.svg?rev=2922979)

# Current Year Shortcodes

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

[下载](https://downloads.wordpress.org/plugin/current-year-shortcodes.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/current-year-shortcodes/#description)
 * [评价](https://cn.wordpress.org/plugins/current-year-shortcodes/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/current-year-shortcodes/#developers)

 [支持](https://wordpress.org/support/plugin/current-year-shortcodes/)

## 描述

**Current Year Shortcodes** lets you insert the current year, month and day anywhere
in your WordPress site with a simple shortcode.

Use the shortcode **[Y]** in any post, page or widget to display the current year.

### How it works

**[Y]** – inserts the current year with four digits e.g. **2023**
 **[y]** – inserts
the current year with two digits e.g. **23** **[m]** – inserts the current month
with two digits e.g. **01** **[n]** – inserts the current month without leading 
zeros e.g. **1** **[F]** – inserts the current month as a text e.g. **January** **[
M]** – inserts the current month with three letters e.g. **Jan** **[d]** – inserts
the current day with two digits e.g. **06** **[j]** – inserts the current day without
leading zeros e.g. **6** **[D]** – inserts the current day with three letters e.
g. **Mon** **[l]** – inserts the current day as a text e.g. **Monday**

## 评价

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

### 󠀁[Yes, it works!](https://wordpress.org/support/topic/yes-it-works-18/)󠁿

 [yodastudio](https://profiles.wordpress.org/yodastudio/) 2024 年 2 月 11 日

It does what it’s meant for, simple and useful.

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

### 󠀁[Works like a charm](https://wordpress.org/support/topic/works-like-a-charm-2286/)󠁿

 [creativeartworks](https://profiles.wordpress.org/creativeartworks/) 2024 年 1 
月 6 日

Well it does what is says. Works fine with Elementor. Installed, inserted the short
code, and never think about it again 🙂 Thank you

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

### 󠀁[Doesn’t work](https://wordpress.org/support/topic/doesnt-work-2994/)󠁿

 [mikelidbetter](https://profiles.wordpress.org/mikelidbetter/) 2023 年 6 月 17 
日 2 回复

Added the [Y] code into the footer, and doesnt work, so deleted the plugin – not
a good start!

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/current-year-shortcodes/reviews/)

## 贡献者及开发者

「Current Year Shortcodes」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Current Year Shortcodes」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/current-year-shortcodes)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.3

 * Added translations for months and days

#### 0.2

 * Added current month and current day
 * Added logo

#### 0.1

 * Initial Release

## 额外信息

 *  版本 **0.3**
 *  最后更新：**2 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/current-year-shortcodes/)
 * 标签
 * [current](https://cn.wordpress.org/plugins/tags/current/)[day](https://cn.wordpress.org/plugins/tags/day/)
   [month](https://cn.wordpress.org/plugins/tags/month/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [year](https://cn.wordpress.org/plugins/tags/year/)
 *  [高级视图](https://cn.wordpress.org/plugins/current-year-shortcodes/advanced/)

## 评级

 5 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/current-year-shortcodes/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/current-year-shortcodes/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/current-year-shortcodes/)