WP Manifestindependent plugin directory
manifest / utilities / wp-dynamic-year-shortcode

WP Dynamic Year Shortcode

A lightweight WordPress plugin that provides a shortcode to display the current year dynamically. Ideal for copyright footers.

by PicklesBucket · github.com/osmanassem/wp-dynamic-year-shortcode

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/osmanassem/wp-dynamic-year-shortcode/archive/refs/heads/main.zip

Dynamic Year Shortcode (WordPress Plugin)

A lightweight WordPress plugin that adds a simple shortcode to display the current year dynamically.
Perfect for copyright notices and footers without needing to update the year manually.


✨ Features

  • Adds a [year] shortcode
  • Outputs the current year automatically (e.g. 2026)
  • No settings, no configuration
  • Lightweight and fast
  • Works with any WordPress theme or page builder

📦 Installation

Option 1: Manual Installation

  1. Download or clone this repository
  2. Upload the plugin folder to: /wp-content/plugins/dynamic-year-shortcode
  3. Go to WordPress Admin → Plugins
  4. Activate Dynamic Year Shortcode

Option 2: ZIP Upload

  1. Download the repository as a ZIP file
  2. Go to WordPress Admin → Plugins → Add New → Upload Plugin
  3. Upload the ZIP and activate

🚀 Usage

Simply use the shortcode anywhere in your WordPress site:

[year]

Example

© [year] Your Company Name. All rights reserved.

This will automatically output:

© 2026 Your Company Name. All rights reserved.

🛠 How It Works

The plugin registers a WordPress shortcode that returns the current year using PHP: date('Y');

No database usage, no external dependencies.


📄 Plugin Details

•   Plugin Name: WP Dynamic Year Shortcode
•   Version: 1.0.0
•   Author: PicklesBucket
•   Website: https://www.picklesbucket.com

📜 License

This project is licensed under the MIT License. You are free to use, modify, and distribute it.


🤝 Contributing

Contributions, suggestions, and improvements are welcome. Feel free to open an issue or submit a pull request.


⭐ Support

If you find this plugin useful, please consider starring the repository ⭐