Title: Dynamic Year and Copyright Shortcode
Author: Deepak Kumar Vellingiri
Published: <strong>2015 年 11 月 1 日</strong>
Last modified: 2018 年 1 月 30 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/dynamic-copyright-year-and-shortcode.
svg)

# Dynamic Year and Copyright Shortcode

 作者：[Deepak Kumar Vellingiri](https://profiles.wordpress.org/dwebsight/)

[下载](https://downloads.wordpress.org/plugin/dynamic-copyright-year-and-shortcode.0.2.1.zip)

 * [详情](https://cn.wordpress.org/plugins/dynamic-copyright-year-and-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/dynamic-copyright-year-and-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/dynamic-copyright-year-and-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/dynamic-copyright-year-and-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/dynamic-copyright-year-and-shortcode/)

## 描述

This plugins allows you to keep the Copyright year of the website always updated
by getting the current year and storing it in the shortcode [current_year].

There are three variations of this plugin’s shortcode

[current_year] – This shortcode displays the current year. Assuming that the current
year is 2015 then the shortcode will display “2015” (without quotes) wherever it
is used.

[current_year_with_copyright_symbol] – This shortcode displays the current year 
with the copyright symbol to its left. Assuming the current year to be 2015 the 
shorcode will display “© 2015” (without quotes) wherever it is used.

[current_year_with_copyright_symbol_and_title] – This shortcode displays the current
year with the copyright symbol and site title to its left. Assuming the current 
year to be 2015 the shorcode will display “Site Title © 2015” (without quotes) wherever
it is used.

### Shortcode Features Available

 1. Current Year
 2. Current Year with copyright symbol
 3. Current Year with copyright symbol and title

## 屏幕截图

[⌊Usage of shortcode in Post/Page Editor⌉⌊Usage of shortcode in Post/Page Editor⌉[

Usage of shortcode in Post/Page Editor

[⌊Output of shortcode on front-end⌉⌊Output of shortcode on front-end⌉[

Output of shortcode on front-end

## 安装

Installing directly from wordpress backend

 1. Goto Plugins -> Add New
 2. Search for Dynamic Year and Copyright Shortcode
 3. Install and Activate the plugin
 4. Use the shorcode variations [current_year], [current_year_with_copyright_symbol]
    and [current_year_with_copyright_symbol_and_title] wherever you want.

Installing by uploading the plugin to wordpress

 1. Goto https://wordpress.org/plugins/dynamic-year-and-copyright-shortcode/
 2. Click on Download to download the plugin to your system
 3. Upload the plugin to wp-content/plugins/ using FTP or Cpanel and extract the zipped
    file
 4. Goto Plugins and Activate the plugin
 5. Use the shorcode variations [current_year], [current_year_with_copyright_symbol]
    and [current_year_with_copyright_symbol_and_title] wherever you want.

## 常见问题

  Installation Instructions

Installing directly from wordpress backend

 1. Goto Plugins -> Add New
 2. Search for Dynamic Year and Copyright Shortcode
 3. Install and Activate the plugin
 4. Use the shorcode variations [current_year], [current_year_with_copyright_symbol]
    and [current_year_with_copyright_symbol_and_title] wherever you want.

Installing by uploading the plugin to wordpress

 1. Goto https://wordpress.org/plugins/dynamic-year-and-copyright-shortcode/
 2. Click on Download to download the plugin to your system
 3. Upload the plugin to wp-content/plugins/ using FTP or Cpanel and extract the zipped
    file
 4. Goto Plugins and Activate the plugin
 5. Use the shorcode variations [current_year], [current_year_with_copyright_symbol]
    and [current_year_with_copyright_symbol_and_title] wherever you want.

  How to display the current year with copyright symbol?

Please use [current_year_with_copyright_symbol]

  How to display the current year with copyright symbol and title?

Please use [current_year_with_copyright_symbol_and_title]

## 评价

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

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

 [Benny](https://profiles.wordpress.org/bennygiesbers/) 2026 年 1 月 9 日

This should be removed from here

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

### 󠀁[Please display in inline-block](https://wordpress.org/support/topic/please-display-in-inline-block/)󠁿

 [setsuwa](https://profiles.wordpress.org/setsuwa/) 2018 年 7 月 28 日

When you use any of the shortcodes, it gives the year in a div, which is a display-
ed as a block, so it is in separate line. 🙁 It would be better in a block with 
display: inline-block CSS property. Nice idea, please fix it!

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

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

 [Graham Jones](https://profiles.wordpress.org/grahamjones/) 2018 年 3 月 28 日

When you use any of the shortcodes it sets the code on separate lines, so you cannot
use current year within any text as it applies line breaks. Secondly, instead of
displaying the copyright symbol, it displays the word &copy which is almost the 
code for the copyright symbol but not quite…! Nice idea, poorly implemented

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

### 󠀁[Thanks!](https://wordpress.org/support/topic/thanks-1333/)󠁿

 [syzygist](https://profiles.wordpress.org/syzygist/) 2018 年 2 月 6 日

Great replacement for the Automatic Copyright Year plugin, which seems to have been
abandoned 🙁 However, it interfered with the footer widget text styling (which the
Automatic Copyright Year widget did not), and I had a deuce of a time figuring out
how to correct it. In the end, I styled div.dcywrapper in Additional CSS for the
shortcode output, then had to manually style the line below it (all rights reserved)
as a separate span in the HTML widget. Ergo, 4 stars instead of 5. But still, thanks
for helping me resist the temptation to run an unmaintained plugin because there
is no replacement 🙂 Don’t know why WordPress doesn’t just add an automatic copyright
shortcode to the built-in WordPress shortcodes. It’s something everyone needs, and
would make it harder for hackers to identify neglected sites.

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

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

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

Exactly what I needed. It is also light weight and so doesn’t add up to the resources
at all.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/dynamic-copyright-year-and-shortcode/reviews/)

## 贡献者及开发者

「Dynamic Year and Copyright Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Deepak Kumar Vellingiri ](https://profiles.wordpress.org/dwebsight/)

[帮助将「Dynamic Year and Copyright Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/dynamic-copyright-year-and-shortcode)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.1

 * Initial version

## 额外信息

 *  版本 **0.1**
 *  最后更新：**8 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  语言
 * [English (US)](https://wordpress.org/plugins/dynamic-copyright-year-and-shortcode/)
 * 标签
 * [automatic copyright year](https://cn.wordpress.org/plugins/tags/automatic-copyright-year/)
   [copyright shortcode](https://cn.wordpress.org/plugins/tags/copyright-shortcode/)
   [dynamic copyright year](https://cn.wordpress.org/plugins/tags/dynamic-copyright-year/)
   [updated copyright year](https://cn.wordpress.org/plugins/tags/updated-copyright-year/)
   [year shortcode](https://cn.wordpress.org/plugins/tags/year-shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/dynamic-copyright-year-and-shortcode/advanced/)

## 评级

 3.2 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/dynamic-copyright-year-and-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/dynamic-copyright-year-and-shortcode/reviews/)

## 贡献者

 *   [ Deepak Kumar Vellingiri ](https://profiles.wordpress.org/dwebsight/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/dynamic-copyright-year-and-shortcode/)

## 捐助

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

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