Automate SEO and content with dynamic shortcodes for dates, years, months in content, titles and more.
Add today’s date by [date]
, current year by [year]
, previous year by [pyear]
, next year by [nyear]
, current month (like January) by [month]
, next month (like February) by [nmonth]
, previous month (like December) by [pmonth]
, current/next/previous month shortname (like Jan, Feb and Dec) by [mon]
, [nmon]
& [pmon]
shortcodes anywhere, including content and title. Uses your default WordPress language. Use this plugin to boost your site’s SEO, automate your affiliate marketing, automatically updating blogging lists, offer dynamic coupon expiries and more, just by using these variables anywhere.
But that’s not it.
[datemodified]
and post publication date by using [datepublished]
shortcodes.[blackfriday]
and [cybermonday]
.[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
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. Also, there are no upsells and will never be.
Dynamic Month & Year into Posts 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.
If you are using TablePress along with a cache plugin, like WP Rocket, please clear transients regularly or disable table cache to see updated shortcode data.
Help me with a positive review to keep the development going.
/wp-content/plugins/
directory, or install the plugin through the WordPress plugins screen directly.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.
You cannot. There is no options panel because there is no need to have one. Why bloat the WordPress dashboard with more options?
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).
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.
You can use <?php echo do_shortcode('[year]');?>
, <?php echo do_shortcode('[month]');?>
etc. in themes or in functionality plugins to use these shortcodes.
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 => textadd_filter('acf/format_value/type=text', 'do_shortcode');
ACF field name => headlineadd_filter('acf/format_value/name=headline', 'do_shortcode');
[datemodified]
and post publication date: [datepublished]
. Use these anywhere you want to make your site more dynamic and SEO friendly.[blackfriday]
and [cybermonday]
shortcodes render this years Black Fridy and Cyber Monday dates like November 25 and November 28. Couple these with [year]
to make the dates complete. See this example[monthyear]
no longer prints next month after 28th. Reason: User experience, as the user may be tricked to thinking the wrong current month and year names.[weekday]
shortcode renders day of the week like Sunday, Monday, …[wd]
shortcode renders shortnames for days of the week like Sun, Mon,…[monthyear]
shortcode renders next month if the current month is about to end, after 28th every month.c
before any month based shortcode to render it capitalized. Useful in various languages where Month names are generally in small letters, like French, Swedish etc.[cmonth]
, [cmon]
, [cnmonth]
, [cpmonth]
, [cnmon]
, [cpmon]
etc.[nnyear]
and [ppyear]
show 2 years next and previous years, like 2023 and 2019 respectively.[monthyear]
shows current month and year together for specific purposes.[mm]
renders month number including trailing zero (01-12)[mn]
renders month number without trailing zero (1-12)rank_math/paper/auto_generated_description/apply_shortcode
filter that causes more load on sites, specially where wp_query
is used.[dt]
shortcode to render only the day of the month (like 1, 2, 3, 17, 28). Combine this with other shortcodes to create date formats you desire.[date]
shortcode renders date as set by Dashboard -> Settings -> General -> Date.[mon]
shortcode to render only the first three-letters of Month, like Jan, Feb, Mar, Apr etc.