Description
Add the [infovarious_countup] shortcode to a post, page or widget. The timer shows how much time has passed since the start date, in days, hours, minutes and seconds, and updates every second. The day count supports 10,000 days and beyond.
Usage:
[infovarious_countup start="2026-11-01 09:00:00"]
Attributes:
start(required): start date and time, in the site’s time zone. Examples:2026-11-01or2026-11-01 09:00:00.title: replaces the automatic title (the formatted start date).suffix: text after the date in the automatic title. Default:elapsed(translated, for exampleからの経過in Japanese).show_date:yes(default) orno. Withno, the date is hidden from the automatic title and only thesuffixtext is shown. Ifsuffixis also empty, no title is shown.label_position:below(default) shows the unit labels under the digits;sideshows them to the right of the digits.theme: color theme.blue(default),green,red,pinkordark. Unknown values fall back toblue.days:auto(default, show days only when one day or more has passed),yes(always show days, even00) orno(never show days; hours keep counting past 24).width: maximum width, for example600pxor80%. Default:760px.label_days,label_hours,label_minutes,label_seconds: unit labels. Defaults:days,hrs,min,sec(translated, for example日,時間,分,秒in Japanese).
The timer uses the visitor’s device clock and recalculates elapsed time from the fixed start date on every update. It therefore catches up correctly after page reloads, tab switching, browser sleep and page-cache delivery. Day values are not limited to four digits.
Installation
- Upload the
infovarious-countup-timerfolder to the/wp-content/plugins/directory, or install the plugin from the Plugins screen. - Activate the plugin.
- Add the
[infovarious_countup start="2026-11-01 09:00:00"]shortcode where you want the timer.
Changelog
1.2.0
- New
themeattribute with five color themes: blue (the default design, unchanged), green, red, pink and dark. Nothing is stored in the database.
1.1.2
- The automatic title now shows the month and day with two digits in English (1999-04-15). The Japanese title is unchanged (1999年4月15日).
1.1.1
- The default of the
daysattribute isautoagain, as in 1.0.x: days appear once one day or more has passed. Usedays="yes"to always show them. - An unknown
daysvalue now falls back toautoeverywhere (PHP and JavaScript).
1.1.0
- Days, hours, minutes and seconds are displayed by default, including zero days.
- Supports 10,000 days and larger day counts with dynamically generated digit cards.
- Recalculates from the original start timestamp rather than incrementing a counter, keeping the display accurate after reloads and tab/background restoration.
- Refreshes immediately on page show, tab return and window focus.
1.0.2
- All texts are now in English and translatable (a Japanese translation is available). Default labels and the automatic title follow the site language.
- Side labels are measured by character type, so Latin labels such as “days” fit as well as Japanese ones.
1.0.1
- The start date is now checked strictly (YYYY-MM-DD, optional HH:MM[:SS]). Words such as “now”, impossible dates such as 2026-02-31, and years before 1900 are rejected with a notice for editors.
- Titles and labels are limited in length so they cannot break the layout.
- Unknown values for label_position, show_date and days fall back to the defaults.
- Requires WordPress 6.3 or later (script loading strategy).
1.0.0
- First release.