Skip to main content Skip to navigation

Events Calendar Syndication

The Short Code

Intro:

With the WSUWP Platform and the Events Calendar plugin, you have the ability to maintain a calendar of events on your site. If the WSU Content Syndicate plugin is also active, you have the ability to show feeds from your calendar virtually anywhere on your site. This is where the short code comes into play.

Short Code:

To get the short code to work you would use the code below without the leading space after the bracket.  This is true for all example code giving throughout this page.

[ wsuwp_events]

Short code options:

host
tag
count
date_format
cache_bust

Following are the plugins you will need to activate in order for the events calendar short code to function properly:

Activate The Events Calendar

Screen Shot 2015-05-12 at 3.34.25 PM

Activate both Events Calendar and Pro.

Activate WSU Content Syndicate

Screen Shot 2015-05-12 at 3.49.34 PM

Short Code Option Examples:

Intro:

This section will be going into detail on what each short code option does to the calendar feed.  It will start with an example and what it would show.  Here is what you would get if you just called [ wsuwp_events]:

Host:

Example:

[ wsuwp_events host=”business.wsu.edu”]

Would appear as:

[ wsuwp_events host=”business.wsu.edu”]

Explanation:

This option tells the plugin to pull the events from the events calendar located at the address “business.wsu.edu” instead of from the default of “calendar.wsu.edu”.

Category:

Example:

[ wsuwp_events category=”Music”]

Would appear as:

Explanation:

This option specifies that it only wants the events shown that have been tagged with the “music” category.

Count:

Example:

[ wsuwp_events count=”5″]

Would appear as:

Explanation:

Count simply tells the plugin to display exactly the number put in between the quotation marks. If no count is given, it will list 10 events at the maximum.

Date_Format:

Example:

[ wsuwp_events date_format=”j M y”]

Would appear as:

Explanation:

Date_format is how you specify how you want the date/time format to b displayed. https://codex.wordpress.org/Formatting_Date_and_Time, is the link you can follow to see how to format this option.

Cache_Bust:

Example:

[ wsuwp_events cache_bust=”2″]

Would appear as:

Explanation:

If you need to refresh the feed, but you don’t want anything else to change, that’s what cashe_bust is for. Just change the number and it triggers a refresh.