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.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/sayhellogmbh/shp-since-shortcode/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
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