WP Manifestindependent plugin directory
manifest / utilities / shp-since-shortcode

Since Shortcode

Provides the [shp-since] shortcode to display relative time from a given year or date.

by Say Hello GmbH · github.com/sayhellogmbh/shp-since-shortcode · website

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/sayhellogmbh/shp-since-shortcode/archive/refs/heads/main.zip

Declares an update source (https://github.com/SayHelloGmbH/shp-since-shortcode), so updates arrive through the plugin's own updater.

From the readme

Since Shortcode A lightweight WordPress plugin by Say Hello that provides the [shp-since] shortcode for displaying relative time from a given year or date. Installation 1. Copy the shp-since-shortcode folder into wp-content/plugins/. 2. Activate the plugin in WP Admin → Plugins. Usage Parameters | Parameter | Required | Description | |-----------|----------|-------------| | year | one of the two | A four-digit year (e.g. 2003). Calculates the number of full years since today's month/day in that year. | | date | one of the two | A date in YYYY-MM-DD format, a full datetime in YYYY-MM-DD HH:MM:SS format, or the special values post-date (current post publish date), post-modified (current post modified date), first-post (oldest published post of post type post), or wordpress-date (fixed date: 2003-05-27). When a time is included, output uses minute/hour granularity. | | mode | no | Controls the output phrasing. See Modes below. Defaults to "". | year and date are mutually exclusive. If both are provided, year takes precedence. Modes | mode value | Past output | Future output | |---|---|---| | (omitted / empty) | 23 years / 4 months / 12 days / 3 hours / 45 minutes | same (dir

Read the full README on GitHub →