Schedule Table Shortcode [mstw_gs_table]

The Game Schedules table shortcode is:

[mstw_gs_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 can be customized. The colors can be customized via the Fields/Columns 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_gs_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 Display Settings page. This approach works well for single team or single sport sites. The shortcode arguments for individual tables override the plugin’s default Display Settings. So each roster can have a unique format.

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
'sched' => 1, // This is used for cdt & slider shortcodes too
'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 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' => 'city-name-state', //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' => '', //Must set table_date_format='custom' to use this argument.
'table_time_format' => 'H:i', //08:30 or 20:30
'custom_table_time_format' => '', //Must set table_time_format='custom' to use this argument.