Follow

Countdown Timers

[countdown date=YYYY/MM/DD-hh:mm:ss] Just [timer] until XYZ! [/countdown]

YYYY = year
MM = month (from 1 to 12)
DD = day number of the month (from 1 to 31)
hh = hours
mm = minutes
ss = seconds

In some cases, you can specify the date differently:

  • YYYY/MM/DD is equivalent to YYYY/MM/DD-00:00:00
  • YYYY/MM/DD-hh is equivalent to YYYY/MM/DD-hh:00:00
  • YYYY/MM/DD-hh:mm is equivalent to YYYY/MM/DD-hh:mm:00

The date shall be indicated according to the time zone of your website. Set correctly your time zone via the WordPress Administration Panel if you have not done.

 

You may occasionally specify an offset to UTC time different from your time zone using the offset attribute:

[countdown date=YYYY/MM/DD-hh:mm:ss offset=x] Just [timer] until this film comes out in cinemas! [/countdown]

The offset attribute is the offset (in hours) to UTC time. You can specify any relative number for this attribute. In some countries, the offset to UTC time is not constant. It may distort the calculation of the remaining time. To solve this problem, you can use the offset attribute (offset=x for each date during winter time and offset=x+1 for each date during summer time, replace x with the right numeric value).

The countdown timer shows the same remaining time everywhere in the world. When the date is reached, the content between [countdown date=YYYY/MM/DD-hh:mm:ss] and [/countdown] disappears. You can format this content as any content of your website.

You can insert the [timer] shortcode as many times as you want between[countdown date=YYYY/MM/DD-hh:mm:ss] and [/countdown]

0 Comments

Please sign in to leave a comment.
Powered by Zendesk