by Gaurav Tiwari on WordPress.org
Automate SEO and content with dynamic shortcodes for dates, years, months, age calculations, seasons and countdowns in content, titles and meta.

Backend Editing
Insert dynamic dates anywhere in your WordPress content using simple shortcodes:
[year] (current), [nyear] (next), [pyear] (previous)[month] (January), [mon] (Jan), [nmonth]/[pmonth] (next/previous)[date] (full date), [dt] (day number), [weekday] (day name)[age date="1990-05-15"] calculates years from any date[season] displays current season (supports hemispheres)[daysuntil date="2025-12-25"] and [dayssince date="2020-01-01"][datemodified] and [datepublished] shortcodes.[blackfriday] and [cybermonday] shortcodes.Works in posts, pages, titles, widgets, and SEO meta. Renders in your WordPress language. Perfect for affiliate marketers, bloggers, and anyone who wants evergreen content that updates automatically.
But that’s not it.
[season] shortcode. Supports hemisphere: [season region="south"] for Southern hemisphere.[age date="1990-05-15"] shortcode. Add ordinal suffix with ordinal="true" (e.g., “35th”).[datemodified] and [datepublished] shortcodes.[blackfriday] and [cybermonday] shortcodes.Four dedicated blocks for the Block Editor:
Dynamic Date Block – Insert any dynamic date with live preview:
Live Countdown Block – Real-time countdown powered by WordPress Interactivity API:
Published Date Block – Display the post’s publication date:
Modified Date Block – Display the post’s last modified date:
All blocks are found under “Widgets” category in the Block Inserter. Plus, a toolbar button in the formatting toolbar lets you quickly insert any shortcode into text blocks.
[year] works as a replacement to %currentyear% , [month] as a replacement to %currentmonth% already.Tested to be totally working with Yoast SEO, SEOPress and Rank Math’s breadcrumbs, custom meta titles, excerpt etc.
Note: Since August 2021, Google has started showing h1 titles in search results, this plugin becomes even more useful as no other SEO plugins adds Current Month, Current Year or Today’s Date in h1 titles except this; keeping the same in SEO meta as well.
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, [month] to render current month (full name) and [mon] to render first three letters of months automatically. See Full List of Shortcodes (You can also see this link in Plugins page in your WordPress dashboard).
As the months & years change, these shortcodes get updated into the content and title automatically on the shortcode locations.
Zero bloat. No CSS/JS files loaded. No database queries are made and the content is rendered on-the-fly. I am a performance geek and digital marketer myself, so I understand what you need. Please use a WordPress cache plugin to cache the rendered content.
Also, Dynamic Month & Year into Posts is a totally free plugin. There are no upsells and will never be.
Dynamic Month & Year into Posts by Gaurav Tiwari is a completely native shortcode plugin. It has no settings page and does not use any analytics tool to gather or use your data. It’s bloat and ad-free. No notifications. No upgrade notices. Nothing.
I will provide instant support for all your queries or feature requests. Use support forum to ask your questions, request new features or report something broken. I will also update the plugin for every major and minor WordPress version.
I use the plugin myself on my primary website and other client sites that I run. I try my best to ensure that this plugin is compatible with every functionality plugin you use. Please let me know if this plugin isn’t compatible with your stack, create a support request and allow me some time.
Please note that some plugins strip shortcodes or disable rendering of shortcodes. In such cases, it’s impossible to implement dynamic dates without rewriting the whole plugin code and breaking a couple of things. But still, I’ll give a try.
Help me with a positive review to keep the development going.