Schedule Table Shortcode [mstw_schedule_table]

The Game Schedules table shortcode is:

[mstw_schedule_table sched=schedule-slug]

The sched argument is REQUIRED. Nothing will display without it. Many other arguments are available to control the table as discussed below.

The schedule table shortcode supports the display of a tabular schedule. The columns can be hidden and their labels/headers can be customized via the Settings screen’s Display tab or via the shortcode arguments described below. The colors can be customized via the Colors tab or by editing the plugin’s stylesheet (css/mstw_ss_styles.css). Examples are shown below and on the MSTW Plugin Development Site.

Game Schedules Table

Shortcode Arguments

The default settings for ALL schedule tables on a site may be set on the plugin’s Settings page. This approach works well for single team or single organization (or school) sites. The shortcode arguments for individual tables override the plugin’s default Settings. So each roster can have a unique format for sites with multiple teams/organizations (or schools).

One argument is critical to use the shortcode: sched='schedule-slug'. Multiple schedules can be combined on the same table by adding multiple schedule slugs separated by commas. For example, sched='schedule-1,schedule-2,schedule-3'. Note: use the the schedule ID or slug, NOT the schedule title or name. Many other arguments are available to customize individual schedule tables. They are listed with their default values below. Some of these settings/arguments overlap with the schedule sliders, others do not.

//default schedule table shortcode arguments
'first_dtg' => '1970:01:01 00:00:00',	// first php dtg. Argument must be entered in this format.
//NOTE set first_dtg='now' to start with the next scheduled game 
'last_dtg' => '2038:01:19 00:00:00', 	// last php dtg (roughly) Argument must be entered in this format.
'games_to_show' => -1, //shows all the games in the schedule
//show/hide date fields and default labels
'show_date'			=> 1,
// 0(hide)|1(show)
'date_label'			=> 'Date',
//Opponent field/column cannot be hidden
'opponent_label'		=> 'Opponent',
'show_location'			=> 1,
'location_label'		=> 'Location',
'show_time'			=> 1,
'time_label'			=> 'Time/Result',
'show_media'			=> 3,
// 0|1|2|3
'media_label'			=> __( 'Media Links', 'mstw-loc-domain' ),
'table_opponent_format'	        => 'full-name',
// full-name|short-name|full-name-mascot|short-name-mascot
'show_table_logos'		=> 'name-only', //Hide Logos
// name-only|logo-only|name-logo
'venue_format'			=> 'name-only', //Show (location) name only
// city-name-state|name-only
'venue_link_format'		=> 'no-link', //No Link
// no-link|link-to-venue|link-to-map

// Date & Time Formats
'table_date_format'		=> 'Y-m-d', //2013-04-07
'custom_table_date_format'      => '', //If entered, this setting will override the table_date_format setting. It must be a valid PhP date string.
'table_time_format'		=> 'H:i', //08:30 or 20:30
'custom_table_time_format'      => '', //If entered, this setting will override the table_time_format setting. It must be a valid PhP date(time) string.