A shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line. Workshop Butler plugin uses them to help you change the layout of the pages easily.
If you are not familiar with the shortcodes, we recommend to read this article first.
Types of shortcodes¶
There are two types of shortcodes: page level and template level shortcodes.
Page level shortcodes are used to render the content of a whole page. For example,
[wsb_schedule] renders an event schedule. You add the shortcodes of this type
to the body of WordPress page.
The shortcodes of template level define where and how the elements are shown on a page. For example, a trainer's photo or a registration button.
The templates define the layout of any page (Schedule, Event, Trainer List, Trainer Profile). You need to use Template level shortcodes to modify them.
- Schedule Template shortcodes
- Event Template shortcodes
- Trainer List Template shortcodes
- Trainer Profile Template shortcodes
Updating the templates¶
To change the template, follow the steps below:
- Go to Workshop Butler plugin settings in WordPress
- Open Pages tab and select the page for editing
- Make the changes and click Save