Testing Date Shortcodes

Code for making dates and locations work

The MW sites use a system of shortcodes to make updating new sites each year easier. Please look a the following in text view and you will see that some code bracketed by brackets [ ] exists for most of the variables that change each year. This means that one change on the backend can change all instances of a shortcode below, allowing a single update point for items likes dates and cities.

Take note that there is a difference between the straight quotes and curly quotes that impact the coding. Typing the variables is fine as is copying from this page- double check when copying variables from other pages that they work.

Also, note that this page is for testing only and should never be published and only used in preview mode.

shortcode expected result actual result
short MW20 MW20
long MW 2020 MW 2020
date March 31-April 4, 2020 March 31-April 4, 2020
year 2020 2020
last_year 2019 2019
site_url https://mw20.mwconf.org https://mw20.museweb.net
city Los Angeles Los Angeles
state CA CA
day_tour Tuesday, March 31st, 2020 Tuesday, March 31, 2020
day_workshop Wednesday, April 1, 2020 Wednesday, April 1, 2020
day_1 Thursday, April 2, 2020 Thursday, April 2, 2020
day_2 Friday, April 3, 2020 Friday, April 3, 2020
day_3 Saturday, April 4, 2020 Saturday, April 4, 2020

Shorcodes Requested but not implemented yet

shortcode expected result actual result
annual 24th MW20
hotel_date Monday, March 9, 202088 MW20
hotel Omni Los Angeles Hotel at California Plaza MW20
hotel_number 1-800-THE-OMNI MW20
hotel_code TBD MW20
hotel_link group discounted rate MW20
info_email MW20 MW20
host_email Conference Organizer MW20
2020 2020