跳到内容

Current Year Shortcode (for Post Titles)

v1.1

wcdev · 2022年6月17日 上架

Display the current year in post and page titles. Make sure you check the "Enable Shortcode in titles" option in the plugin settings page to …

正在使用
10+
评分
暂无
累计下载
2,404
最近更新
2024年3月19日
需要 WordPress 5.5+已测试到 6.4.15PHP 7.0+

贡献者

The shortcode [wcyear] will display the current year. You can place this shortcode anywhere in your WordPress site.

IMPORTANT: If you want to place this shortcode in post and page titles, go the plugin settings to check “Enable Shortcode in titles”.

If you use Yoast SEO, you can enable the relevant setting for the shortcode to work with Yoast SEO plugin. For other SEO plugins, you should use their inbuilt dynamic tags to diplay the current year.

NOTE: It’s best to use the dynamic tags that come with SEO plugins for displaying current year in meta titles.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums