Age : [age date="1990-05-15"] calculates years from any date
Season : [season] displays current season (supports hemispheres)
Countdowns : [daysuntil date="2025-12-25"] and [dayssince date="2020-01-01"]
Post Dates : [datemodified] and [datepublished] shortcodes.
Event Dates : [blackfriday] and [cybermonday] shortcodes.
Block Editor support : Toolbar to quickly insert the shortcodes, customizable date and countdown blocks.
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.
See Full List of Shortcodes
New: Display current season with [season] shortcode. Supports hemisphere: [season region="south"] for Southern hemisphere.
New: Calculate age with [age date="1990-05-15"] shortcode. Add ordinal suffix with ordinal="true" (e.g., “35th”).
New: Post dates with [datemodified] and [datepublished] shortcodes.
New: Event dates with [blackfriday] and [cybermonday] shortcodes.
Gutenberg Blocks
Four dedicated blocks for the Block Editor:
Dynamic Date Block – Insert any dynamic date with live preview:
Select date type from dropdown (year, month, date, age, season, etc.)
Configure age format (years only, years & months, full breakdown)
Set ordinal suffix for age display
Typography and color controls
Spacing options (margin, padding)
Live Countdown Block – Real-time countdown powered by WordPress Interactivity API:
Count days until or since any date
Auto-updates without page reload, even when the page HTML is cached
Repeat the countdown annually
Customizable label text
Correct singular and plural day labels
Typography and color styling
Perfect for event promotions and milestones
Published Date Block – Display the post’s publication date:
Uses WordPress date format from Settings
Custom format support
Typography and color controls
Modified Date Block – Display the post’s last modified date:
Uses WordPress date format from Settings
Custom format support
Typography and color controls
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.
Works with popular SEO Plugins
Supports RankMath, Yoast and SEOPress plugins and can be used to replace all their date based variables.
[year] works as a replacement to %currentyear% , [month] as a replacement to %currentmonth% already.
Use various combinations to make your articles even more dynamic and make your content always SEO ready — no matter the date or year.
Extremely useful for Affiliate Marketers, Amazon Affiliates and Copywriters.
Tested Support With
Rank Math
Rank Math Pro
SEOPress
SEOPress Premium
Yoast SEO
Yoast SEO Premium
SureRank
Gutenberg and Block Editor Content, Headings and Buttons
All popular Block Editor Addons , including Greenshift, GenerateBlocks, Ultimate Blocks, Kadence Blocks, Spectra, Otter Blocks.
Elementor Page Builder
WP Bakery Page Builder
Visual Composer
Beaver Builder
Brizy Builder
Oxygen Builder
Bricks Builder
Jetpack Related Posts
Intelly Related Posts a.k.a. Inline Related Posts (IRP)
Advanced Custom Fields (Manual: please see the FAQs)
Lightweight Accordion (including Schema)
All major themes including Twenty Twenty-Five, Twenty Twenty-Four, Twenty Twenty-Three, Twenty Twenty-Two, Twenty Twenty-One, Twenty Twenty, Astra, Neve, Hello (Elementor), Kadence, GeneratePress, Blocksy, and OceanWP.
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.
More features
Full Rank Math OpenGraph Support.
Full Schema and OpenGraph support in YoastSEO.
Multiple Langauge (WPML) Support: Shortcode renders your site’s defined language.
Contextual Related Posts Support.
Jetpack Related Posts Support.
Totally native. Doesn’t write anything to the database.
No configuration required.
The Live Countdown corrects cached day counts in the browser.
Easy to use
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. Editor assets load only in the editor, and frontend JavaScript loads only for the Live Countdown block. Shortcode rendering makes no plugin database queries. Ordinary shortcodes are server-rendered, so configure your page cache to expire or purge when a cached year, month, date or age should change.
Also, Dynamic Month & Year into Posts is a totally free plugin. There are no upsells and will never be.
More details
Free Support
More WordPress Plugins and Web Tools
WordPress Deals
Request a Feature
Privacy
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.
Fast Support and Feature Implementation
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.
Compatibility
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.
See it in action
Screenshots & previews.
Real-world evergreen content examples on the Ollie theme and WordPress 7.1Literal date shortcodes in the visual Block Editor using the Ollie page layoutThe same shortcode page rendered on the Ollie frontendWordPress Posts list with dynamic month, year, event date and age titles already rendered
02 / Source details
Gettingstarted.
01Upload the plugin folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
02Activate the plugin through the ‘Plugins’ screen in WordPress
03There is no additional configuration required. There will not be any menus or settings for this plugin.
03 / Source details
Frequently asked questions.
Why would I need this?
If you are an affiliate marketer or blogger who uses months, years and dates in your posts. If you use this plugin to render dynamic month, year, date, next year, and previous year shortcodes, you won’t have to update those posts again and again as time passes.
How can I access settings?
You cannot. There is no options panel because there is no need to have one. Why bloat the WordPress dashboard with more options?
Can I use it in Block Editor or Classic Editor?
Like running text, you can use the shortcodes in both Block Editor and Classic Editor. You can also use the shortcodes in widget areas, including the footer (use-case: Autoupdating Copyright Year) and headers (use-case: Today’s Date).
Will this plugin work in my language?
Yes. The shortcode outputs are WPML ready and render as per the language set in your WordPress dashboard. Since there is no settings page, you don’t have to translate this plugin.
How can I use these shortcodes in my theme/PHP code?
You can use <?php echo do_shortcode('[year]');?> , <?php echo do_shortcode('[month]');?> etc. in themes or in functionality plugins to use these shortcodes.
How can I render shortcodes in ACF fields?
This plugin doesn’t render shortcodes in ACF fields by default (due to various reasons, security being the first). But if you really need to render [year] etc., shortcodes, you can enable selective rendering. Just add this code in your theme’s functions.php file or in the Code Snippets plugin:
ACF field type => text add_filter('acf/format_value/type=text', 'do_shortcode');
ACF field name => headline add_filter('acf/format_value/name=headline', 'do_shortcode');
How can I disable shortcode processing in titles or excerpts?
Since 1.7.1, you can use the dmyip_core_filters filter to selectively disable shortcode processing. Add this to your theme’s functions.php or a code snippets plugin:
Disable all core filters: add_filter( 'dmyip_core_filters', '__return_empty_array' );
Disable only title processing: add_filter( 'dmyip_core_filters', function ( $filters ) { $filters['the_title'] = false; return $filters; } );
Available keys: the_title , single_post_title , wp_title , the_excerpt , get_the_excerpt , get_the_archive_title . All default to true .
Website LLMs.txt and LLMs-Full.txt Generator is an LLMs.txt generator and llms-full.txt generator for WordPress. It helps site owners generate, manage, preview, validate, and serve AI discovery files from published public content. Use it to create structured /llms.txt and optional /llms-full.txt end
EngageDock AI is a customizable floating contact widget for WordPress websites that want more leads and faster visitor communication. It helps small businesses turn website traffic into calls, texts, emails, and callback requests from one clean contact panel. Key Features: Click-to-Call – One tap ca
Altify AI is an auto ALT text and AI ALT text plugin for WordPress images. It helps generate descriptive image ALT text for accessibility and image SEO. Use bulk image ALT text tools for your Media Library, generate featured image ALT text automatically, and scale WooCommerce image ALT updates with
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati