Displaying a calendar

There are two different types of calendar:

  • widget calendar – a small, minimal calendar,
  • “fullcalendar” – a larger calendar, similar to the ‘admin calendar’, with options to add filters, change the ‘view’, display tooltips and other options.

This page explains how you can use these calendars on your site.

Displaying a calendar

The ‘fullCalendar’ displays an events calendar, similar to the ‘admin calendar’, and gives you a large degree of flexibility. Apart from the extensive options available, you can also customises the content of the event tooltips.

Using a shortcode:

Simply create a page on your WordPress site and include the following in the page’s content:

 [eo_fullcalendar]

You can include other content around the shortcode if desired.

The eo_fullcalendar shortcode comes with a vast range of options allowing up you to add filters, display ‘week’ or ‘day’ views, change the date or time format, and much more. Please see documentation for the calendar shortcode for more details.

Using the function:

If you wish to display a calendar from inside a WordPress template you can use the following:

 echo eo_get_event_fullcalendar();

See the codex on eo_get_event_fullcalendar for details on the arguments it accepts.

Displaying a widget calendar

The widget calendar is a much simplier, and smaller calendar which looks almost identical to your theme’s posts calendar (the default calendar widget). The widget calendar is an ajax-powered events calendar which allows the user to click on days with events which takes them to that day’s events page (or the event itself). It comes in two forms: as a shortcode and a widget.

Using the widget:

Go to Appearance > Widgets in your WordPress admin and add the “Events Calendar” widget to the desired ‘widgetised area’. You can then configure the widget’s settings as desired. Please see documentation for the event calendar widget for details on these options.

Using a shortcode

Simply create a page on your WordPress site and include the following in the page’s content:

 [eo_calendar]

You can include other content around the shortcode if desired.

Please see documentation for the shortcode for details on the attributes accepted by the widget calendar shortcode.