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:

  1. for homecoming
  2. 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 page, paste or write the short code with the appropriate tag(s) in the text tab of the WYSIWYG interface.

For example, for reunion class of 1938:

[cornell_schedule builder=2 tags="CF2AB44D-FDC0-40E4-ACB720B25CFB87F0"]

For example, for homecoming Hotel school

[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 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 /wp-content/plugins/cornell-schedule-shortcode/cornell-schedule-shortcode.php

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:

[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.


  • No labels