uwh-table 2
Arguments
campus_type
Options are: ‘4-year’ (only 4 years), ‘2-year’ (only 2 years), ‘4-year-colleges' (4 years plus an entry for UW Colleges), ‘all-sorted’ and ‘all-sorted-plus-colleges’ (sort the branch campuses under their 4 year; in a table, the children will be indented and the groups will be shaded).
The default is all the campuses in alphabetical order.
campus_exclude
Comma separated list of campus paths to exclude from the list. Campuses with no data will automatically be excluded.
layout
Options are ‘accordion’, ‘select', and ‘table’.
Layout-specific Arguments
Accordion
Select
show_all_button
Specify show_all_button="true" to display a ‘Open All’ button on your accordion.
Table
cols
Specify a comma-delimited list of ACF fields to display in the table.
cols_widths
Optionally, specify a comma-delimited list of widths in percentage here. For example, col_widths="25,20,25,20".
link_label
If you are displaying links in the table, use this to specify the text of the link. If this is not specified, the link will display the URL. This should be a comma delimited list and the label should be in the position of the link. For example, link_label=",,Check Status". See example below.
campus_link
Optional. If you would like the name of the campus to be a link, specify the ACF key for that URL field here.
Content for Accordions and Select
For the accordion and select type display, the content is determined by the content surrounded by the uwh-table shortcode. It should be the uwh-table-row shortcode that specifies which ACF fields are displayed for each campus. The title of each section is a human-readable version of the ACF key.
[uwh-table-row cols='acf_key_1,acf_key_2']
See accordion and select examples below.
Examples
Table
[uwh-table layout="table" campus_type="all-sorted" cols="scholarship_deadline,scholarships_link" ]
[uwh-table layout="table" campus_type="all-sorted" campus_exclude="uw-extension" cols="begin_reviewing_applications,review_process_length,campus_portal" link_label=",,Check Status" col_widths="25,20,25,20"][/uwh-table]
Accordion
[uwh-table campus_type="all-sorted" layout="accordion" show_all_button="true"][uwh-table-row cols="freshman_admission_guidelines"][/uwh-table-row][uwh-table-row cols=" college_preparatory_credit_requirement"][/uwh-table-row][uwh-table-row cols="application_dates"][/uwh-table-row][uwh-table-row cols="postponed_admission_or_waiting_list"][/uwh-table-row][uwh-table-row cols="enrollment_deposit"][/uwh-table-row][/uwh-table]
Select
[uwh-table campus_type="all-sorted" layout="select"][uwh-table-row cols=" college_preparatory_credit_requirement"][/uwh-table-row][/uwh-table]