Topics

  1. Home
  2. Docs
  3. Topics
  4. Events
  5. Shortcodes

Shortcodes

The shortcodes outlined below are included in the FooEvents Calendar plugin

Navigate to the post or page where you would like to insert the calendar on your website. Type or paste the calendar shortcode in the main content text editor.

Shortcode usage

Basic calendar

[fooevents_calendar]

Display particular month

[fooevents_calendar defaultDate= "2019-09-01"]

Filter by category

[fooevents_calendar include_cat="featured"]

Specify number of events to display

[fooevents_calendar num=10]

Display list view (day)

[fooevents_calendar defaultView="listDay"]

Display list view (week)

[fooevents_calendar defaultView="listWeek"]

Display list view (month)

[fooevents_calendar defaultView="listMonth"]

Display multiple calendars per page

[fooevents_calendar id="cal1"], [fooevents_calendar id="cal2"] etc.

Set the time format

[fooevents_calendar timeFormat="H.mm"]

Calendar Widgets

  • Go to Appearance > Widgets
  • Drag the FooEvents Calendar widget into the widget area where you would like it to be displayed
  • Type a widget title
  • Select which type of view you would like to use – Calendar or List view
  • Calendar view
    • You can specify which date you would like the calendar to start on. If left empty, the calendar will default to the current date.
    • Example date format: 2016-09-01 (yyyy/mm/dd)
  • List view
    • You can set the number of events to be displayed. By default, the list view will display the latest 5 events.
  • Click Save to confirm your changes

Other Shortcodes

Simple event

[fooevents_event product=10]

Simple list of events

[fooevents_events_list]

List of 5 events

[fooevents_events_list num=5]

Sort events according to the event date

[fooevents_events_list sort="ASC"], [fooevents_events_list sort="DESC"] etc.
Tags , , , , , ,
Was this article helpful to you? Yes 1 No 1