Shortcodes

Calendar

The Calendar shortcode allows you to display a Calendar on any page that you would like.

Usage

[rockpress_calendar]

Below are a list of parameters that you can use to modify the output:

  • year (string) “YYYY”. Defaults to the current year.
  • month (string) “M”. Defaults to the current month.
  • calendar (string). Comma separated string of calendar IDs to display.
  • audience (string). Comma separated string of audience IDs to display.
  • show_support (true/false). Displays “Powered by RockPress” at the bottom of the calendar. Defaults to true.

Example

For example, to display a calendar with only events from a specific calendar:

[rockpress_calendar calendar="1"]

Event Details

The Event Details shortcode allows you to place the Event Details precisely on your page.

Usage

[rockpress_event_details]

Upcoming Events

The Upcoming Events shortcode allows you to display the upcoming events for any combination of calendars and audiences on any page.

Usage

[rockpress_upcoming_events]

Below are a list of parameters that you can use to modify the output.

  • date_start (string) Valid format: “YYYY-MM-DD”. Defaults to the current day.
  • date_range (string) Valid values: “today”, “1 week”, “2 weeks”, etc. Defaults to “4 weeks”.
  • calendar (string) Comma separated string of calendar IDs to display.
  • audience (string) Comma separated string of audience IDs to display.
  • exclude (string) Comma separated string of event IDs to exclude.
  • how_many (integer) Defaults to 5.
  • calendar_link (string) Valid values: show or hide. Defaults to hide.
  • template (string) The name of a template to use for displaying the events.

Example

For example, to display 10 upcoming events and show the calendar link:

[rockpress_upcoming_events how_many=10 calendar_link="show"]