
Current Year Shortcode (for Post Titles)
v1.1wcdev · 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.