Coaching Staffs Table [shortcode]

The Coaching Staff Table layout is a simple but very flexible table roster of a coaching staff. The Coaching Staffs table shortcode is:

[mstw-cs-table staff=staff-slug].

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

The Coaching Staff Table layout is controlled by two factors in the following order:

  1. the [mstw-cs-table] shortcode arguments, or if not specified,
  2. the global default settings in the plugin’s Display Settings admin screen.

The default settings for all coaching staff tables on a site may be set on the plugin’s Display Settings page. This approach works well for single staff or single sport/team sites. The [shortcode] arguments for individual tables override the plugin’s default Display Settings. So each roster can have a unique format. Examples of how to achieve this may be found on the MSTW plugin development site.

The arguments are available for use with the [mstw-cs-table] shortcode and their defaults are listed below. In all the ‘show’ arguments, 1 means show the data field or column and 0 means hide it. Remember that the data columns are very flexible, so the descriptions only indicate the intent for the field or knockoff rolex explorer m216570 0002 rolex calibre 2836 2813 mens 15mm black dial column. For example, one could use the Experience field to show the Salary of each coach simply by relabeling it appropriately and entering each coach’s salary in the Experience field. A couple of sample tables and their arguments are shown at the end of this page.

$defaults = array(
   'staff' => "",  //THIS ARGUMENT MUST BE PRESENT
   'show_title'	=> 1,	// COACHES TABLE/SHORTCODE ONLY
   'show_photos' => 1,  //IN TABLE ONLY
   'photo_label' => __( 'Photo', 'mstw-loc-domain' ),
   'name_label'	=> __( 'Name', 'mstw-loc-domain' ),
   'position_label' => __( 'Position', 'mstw-loc-domain' ),
   'show_position' => 1,
   'experience_label' => __( 'Experience', 'mstw-loc-domain' ),
   'show_experience' => 1,
   'alma_mater_label' => __( 'Alma Mater', 'mstw-loc-domain' ),
   'show_alma_mater' => 1,
   'degree_label' => __( 'Degree', 'mstw-loc-domain' ),
   'show_degree' => 0,
   'birth_date_label' => __( 'Born', 'mstw-loc-domain' ),
   'show_birth_date' => 0,
   'home_town_label' => __( 'Hometown', 'mstw-loc-domain' ),
   'show_home_town' => 0,
   'high_school_label' => __( 'High School', 'mstw-loc-domain' ),
   'show_high_school' => 0,
   'family_label' => __( 'Family', 'mstw-loc-domain' ),
   'show_family' => 0,
   'profile_bio_heading_text' => 'Profile',
   'show_gallery_title' => 1,
);
Shortcode Example #1
Shortcode Example #2