Manually Adding Stoplight Display with a Shortcode

This is an update to How to Display Stoplight Colors on Your Agenda and Other Agenda Styling Options.

If you have the stoplight feature turned on, those colors will automatically be displayed for speech roles, table topics, and evaluations. Almost immediately I ran into a different scenario: manually adding the stoplight display to a contests agenda. This can be done using a WordPress shortcode, which is a placeholder for a software function you insert in the body of a post. The placeholders for roles and agenda notes are also shortcodes, although I’ve given them a more user friendly user interface with the color-coded images and popup editors.

Here is how the stoplight shortcode appears on the editor, editing the event for my home club’s upcoming evaluation contest.

Stoplight shortcode

The result on the agenda:

Stoplight shortcode display on the agenda.

The formula is [stoplight green=”5″ red=”7″] with angle brackets around the code that begins with “stoplight” and green, red, and optionally yellow specified as parameters.

Comments

comments