Linux 软件免费装
Banner图

Current Year Shortcode

开发者 runthingsdev
更新时间 2026年11月16日 12:51
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

shortcode date copyright year dynamic-content

下载

2.1.0 2.1.1 2.1.2

详情介绍:

This is a plugin which adds a simple shortcode to display the current year or a dynamic year range, particularly useful for copyright statements at the bottom of your website. Its most basic usage is [year], which will display the current year. If you provide a starting year with the 'from' parameter, it will expand into a date range when the 'from' year is before the current year. If [year] is used by another plugin, then it uses the fallback [runthings_year] which can be customised with the runthings_current_year_shortcode_tag filter. You can see the active shortcode tag in it entry in the installed plugins page. Features Usage Examples Assuming the current year is 2026:

安装:

  1. Upload the plugin files to the /wp-content/plugins/runthings-current-year-shortcode directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Use the [year] shortcode in your posts, pages, or widgets.

屏幕截图:

  • Plugin info showing the active shortcode
  • Help tab with usage examples

升级注意事项:

2.1.2 Updates WordPress tested-up-to metadata to 7.1. 2.1.1 Bump tested up to 6.9. Update year examples to 2026. 2.1.0 This update moves scripts and styles into externally included files.

常见问题:

What if another plugin already uses the [year] shortcode?

If another plugin already uses the [year] shortcode, this plugin will automatically use [runthings_year] instead to avoid conflicts.

How can I check which shortcode is active?

On the Plugins admin page, you'll see the active shortcode listed in the plugin's row.

Can I use this in my footer?

Yes! This shortcode works perfectly in footer widgets, custom footer code, or anywhere else shortcodes are supported in your theme.

What's the 'mode=short' parameter for?

When using a date range with years in the same century (e.g., 2020-2026), the 'short' mode will abbreviate the end year to just the last digits (2020-26), creating a cleaner look for your copyright statements.

更新日志:

2.1.2 - 16th November 2026 2.1.1 - 17th December 2025 2.1.0 - 26th March 2025 2.0.0 - 15th March 2025 1.3.0 - 5th January 2024 1.2.0 - 29th May 2023 1.1.0 - 19th February 2022 1.0.0 - 25th August 2021