Dynamic Month & Year into Posts – Documentation

  • JNext lesson
  • FSearch lessons
  • EscClear search

Version: 1.7.1 | Author: Gaurav Tiwari | WordPress: 6.0+ | PHP: 7.4+
Plugin URI: https://gauravtiwari.org/snippet/dynamic-month-year/


Dynamic Month & Year into Posts provides 37 shortcodes and 4 Gutenberg blocks for inserting dynamic, always-current dates into WordPress content, titles, excerpts, and SEO meta fields. Zero configuration, no database queries, no settings page.

Architecture: The plugin has two loading paths:

  • Modern (Composer): Namespaced PSR-4 classes in src/ loaded via vendor/autoload.php
  • Legacy: Procedural PHP in includes/ for backward compatibility

If vendor/autoload.php exists, the modern path loads. Otherwise, the legacy path provides core shortcode functionality.

Installation

  1. Upload the plugin folder to /wp-content/plugins/
  2. Activate through the Plugins screen
  3. No configuration needed. Start using shortcodes and blocks immediately.