WP Manifestindependent plugin directory
manifest / utilities / shortcode-year-or-years

Shortcode: Year or years

WordPress Plugin that provides a shortcode to display the current year, optionally including a start year. Commonly used in copyright notices.

by Lukas Besch · github.com/lukasbesch/shortcode-year-or-years · website

1stars
15composer installs
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/lukasbesch/shortcode-year-or-years/archive/refs/heads/master.zip

Also on Packagist as lukasbesch/shortcode-year-or-years:

composer require lukasbesch/shortcode-year-or-years

From the readme

Shortcode: Year or years Provides a WordPress shortcode to display the current year, and optionally a start year. Commonly used for copyright notices. Installation Alternatively download the latest release from GitHub and install it into the plugins directory. Usage Show current year [yearoryears] // 2026 Show current year and a start year [yearoryears from="2019"] // 2019–2026 The start year will only be displayed if it is lower than the current year: [yearoryears from="2026"] // 2026 Optionally specify a custom separator: [yearoryears from="1984" separator=" until "] // 1984 until 2026

Read the full README on GitHub →