How to insert a custom schedule in a WordPress page (knowledge for the WordPress site editors)
The short code takes two attributes: builder and tags.
The builder attribute takes an integer that represents the event:
- for homecoming
- for reunion
The tags attribute takes one or more comma delimited tags that can be found in the admin area of the builder.
To insert a custom schedule on a On each class page, paste or write the according short code that's given to you by the web teamwith the appropriate tag(s) in the text tab of the WYSIWYG interface.
For example, for reunion class of 1938:
Code Block |
---|
[cornell_schedule builder= |
...
2 tags="CF2AB44D-FDC0-40E4-ACB720B25CFB87F0"] |
For example, for homecoming Hotel school
Code Block |
---|
[cornell_schedule builder=1 tags="EAE391E4-C4FE-D301-9315DE20C97A04E4"] |
...
The latter example will look like this in WordPress:
Doing so will automatically pull the related events from the Itinerary builder and insert them on the page in chronological order.
About the plugin (knowledge for the web team)
The Itinerary builder itself is written built and maintained by Adam Palcich and his team.
We (web team) maintain a WordPress short code plugin that make API calls to Itinerary builder to fetch events data, format and sort by time, then display them on our WordPress site.
The short code plugin is at cornell-alumni/web/wp-content/plugins/cornell-schedule-shortcode/cornell-schedule-shortcode.php* Example short code to enter on the alumni.cornell.edu website:
[cornell_schedule builder="reunion" tags="CF2AB44D-FDC0-40E4-ACB720B25CFB87F0"]
*
The short code takes two attributes: builder and tags.
"builder" takes an integer that represent the event.
1 - homecoming
2 - reunion
"tags" takes a comma separated list of tags from the admin panel of the itinerary builder.
Where to get the tags
...
https://apps.univcomm.cornell.edu/itinerary-builder/?view=tags
Example short code to enter on the alumni.cornell.edu website:
Code Block |
---|
[cornell_schedule builder=2 tags="CF2AB44D-FDC0-40E4-ACB720B25CFB87F0"] |
Every year, we (web team) find all the class related tags, paste them in a spreadsheet, then share them with the user (reunion/homecoming web page editor), who will then enter the short code on each page that needs a schedule to be displayed.
There are two folders (reunion, homecoming) stored on alumni.cornell.edu Wordpress site server along with other static web pages. The folders are given to us by Adam and are usually updated once a year when he makes changes.
- static/alumni/homecoming-planner
...
- static/alumni/reunion-planner