Countdown Timer Shortcode

The countdown timer shortcode – [mstw_countdown_timer] – provides a countdown to the next game for a given schedule as shown below.

Countdown Timer

The shortcode REQUIRES the following argument:

sched="schedule-slug"

which tells the shortcode what schedule to use to calculate the countdown.

The following arguments are also accepted:

  1. intro=”text string” defines what string to display before the countdown. Defaults to “Time to kickoff:”
  2. home_only=”true/false” tells the shortcode to countdown to home games only. Defaults to false (all games).
  3. show_table_logos = “name-only|logo-only|logo-name”
  4. table_opponent_format = “short-name|full-name|short-name-mascot|short-name-mascot”
  5. cdt_dtg_format=”custom” Note that this argument has to be paired with the following argument.
  6. custom_cdt_dtg_format= “any valid PHP date() format string” Note that this format should be a date+time format for when the game time is not T.B.D.
  7. cdt_date_format=”custom” Note that this argument has to be paired with the following argument.
  8. custom_cdt_date_format= “any valid PHP date() format string” Note that this format should be a date only format for when the game time is T.B.D.