Add Dynamic Month and Year to Post Content, Title and Meta using Shortcode

Add the current year by [year] and current month by [month] shortcodes anywhere, including content, title, meta title, excerpt and breadcrumbs. Other shortcodes that you can use are [date], [nyear] and [pyear]. Read on to learn more.

, Image, Gaurav Tiwari

Description

Add today’s date by [date], current year by [year], previous year by [pyear], next year by [nyear] and current month by [month] shortcodes anywhere, including content and title. Use this plugin to boost your site’s SEO by using the variables anywhere. Supports RankMath, Yoast SEO and SEOPress plugins. [year] works as a replacement to %currentyear% like variables in these plugins, while [month] works as a replacement to %currentmonth% like variables already.

Supports even the breadcrumbs, custom meta titles, excerpt etc.

Supports Rank Math, Rank Math Pro, SEOPress, SEOPress Premium and Yoast SEO, Yoast SEO Premium. Tested to be working with Yoast SEO, SEOPress and Rank Math’s breadcrumbs, custom meta titles, excerpt etc.

How to use it?

Just install the plugin (see Installation tab) and activate it. Add [year] to render current year, [nyear] to render next year, [pyear] to render previous year and [month] to render current month automatically. As the months & years change, they get updated into the content and title automatically on the shortcode locations.

Rankmath SEO plugin is (very) recommended but not required.

Installation

  1. Upload the plugin folder to the /wp-content/plugins/ directory, or install the plugin directly through the WordPress plugins screen.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. There is no additional configuration required.

Screenshots

Download the plugin

Changelog

VersionChanges
1.1.1
  • Bug fixes
1.1.0
  • New: Rank Math OpenGraph Support
  • Bug fixes
1.0.9
  • Improved: Schema and OpenGraph support in YoastSEO.
  • Work in Progress: Full Schema and OpenGraph support in Rank Math
  • Removed: Rank Math recommendation.
1.0.8
  • New: Contextual Related Posts Support
1.0.7
  • New: SEOPress Support
1.0.6
  • New: Yoast SEO Support
1.0.5
  • Multiple Language Support: Shortcode renders your site’s defined language.
  • New: [date] shortcode for today’s date.
  • WordPress 5.6 Compatibility
1.0.4
  • Optimization
1.0.3
  • Updated Readme.txt file
1.0.2
  • [pyear] yields previous year (e.g., 2020)
  • [nyear] yields next year (e.g., 2022)
1.0.1
  • Fixed Name Conflicts
1.0.0
  • First version

New Substack Newsletter

Brain and soul musings. Thoughts and opinions on Business, Tech, Education, Marketing and Growth Hacking.

New Substack Newsletter

Brain and soul musings. Thoughts and opinions on Business, Tech, Education, Marketing and Growth Hacking.