How Can We Help?
Shortcode
If you are using the Classic Editor Plugin or prefer not to add your conference schedule to your website with a block, you can use a shortcode to add the schedule to any post or page of your site. The shortcode is also useful for adding your schedule to pages built with a page builder or to widget areas.
Below are instructions for using and configuring WP Conference Schedule’s shortcode included with the FREE version of our plugin.
The Default Shortcode
With the WP Conference Schedule plugin installed you can add the default shortcode [wpcs_schedule] to the post editor or a shortcode block.
The default shortcode displays with the attribute defaults listed below.
Shortcode Attributes
Shortcode attributes allow you to choose what displays on the schedule.
[wpcs_schedule date="2019-04-08" color_scheme="light" session_link="permalink" tracks="track-1,track-2,track-3"]
Date
- This attribute filters the shortcode to only show sessions from a specific date.
- Allowed date format: yyyy-mm-dd
- Default: All dates
- Example: [wpcs_schedule date="2019-04-08"]
color_scheme
- This attribute allows you to choose the color scheme for the schedule.
- Options:
- light
- dark
- Default: light
- Example: [wpcs_schedule color_scheme="light"]
layout
- This attribute allows you to choose the layout for the schedule.
- Options:
- table
- grid
- Default: table
- Example: [wpcs_schedule layout="table"]
session_link
- This attribute allows you to define where the session links to.
- Options:
- permalink
- Links to the session post.
- anchor
- Links to an ID of the session post slug on the same page.
- Example: #my-session
- none
- No link will be used
- permalink
- Default: permalink
- Example: [wpcs_schedule session_link="permalink"]
tracks
- This attribute filters the shortcode to only show sessions that are in specified tracks that you have created.
- Accepts a comma separated list of track term slugs. You can find the track slugs by navigating to Sessions → Tracks in your WordPress admin, as show in this screenshot.
- Default: All tracks
- Example: [wpcs_schedule tracks="track-1,track-2,track-3"]
align
- This attribute allows you to define the alignment class added to the schedule. This correlates to the Gutenberg block classes and requires css styles to be added to your theme, unless you’re using a Gutenberg ready theme that already includes the align css styles.
- Options:
- full
- wide
- Default: null
- Example: [wpcs_schedule align="full"]