Shortcode: Events List

JT Event Calendar comes with the [events_list] shortcode that gives you the option to display your events on every page of your WordPress site.

Let’s see how this shortcode works.

Basic Shortcode

By using the shortcode

[events_list]

you can display all your events in a list. This list will display the event’s title, image, short info, date, time and location.

Advanced Shortcode

We know that you want to have flexibility when you create your site, so we added some options to the shortcode. By using the following attributes, you can define a few more things:

title

Give a title to your list.

Shortcode

[events_list title="My Events"]

Preview:

My Events

num

Define the number of events you want to display. Default value is -1 (all events).

Shortcode:

[events_list num="2"]

Preview:

cat

A specific category of your events. Note that you have to use the category’s slug.

Shortcode:

[events_list cat="events"]

Preview:

month

Display events from a specific month. For example, if you want to display July’s month, you have to add month=”07″.

Shortcode:

[events_list month="11"]

Preview:

style

The list’s style you want to use on your site. The available styles are: default, default-2, default-3, default-4, default-5, grid, grid-2, grid-3, grid-3-col, grid-5-cols, grid-overlay, grid-overlay-text-2, grid-overlay-text-right, grid-rounded-image, overlay-text, overlay-text-hover, slideset-2, slideset-2-columns, slideset-overlay, small-list, small-list-2, small-list-3, small-list-4, small-list-5, small-list-6, small-list-7, small-list-8 and sidebar-rounded-image.

Shortcode:

[events_list style="grid-3"]

Preview:

Note that you can also use all attributes together. For example:

[events_list title="My Events" month="07" cat="events" num="3" style="grid"]