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

Yoga Courses

Jul 17

Do you like yoga? Join our group now and stretch your body!

JT Gym 12:00

num

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

Shortcode:

[events_list num="2"]

Preview:

Yoga Courses

Jul 17

Do you like yoga? Join our group now and stretch your body!

JT Gym 12:00

Kids Party

Aug 21

The best event for kids is here! Come and let your kids play with balloons, toys and more!

JT Playground 12:00

cat

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

Shortcode:

[events_list cat="events"]

Preview:

Yoga Courses

Jul 17

Do you like yoga? Join our group now and stretch your body!

JT Gym 12:00

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:

Yoga Courses

Jul 17

Do you like yoga? Join our group now and stretch your body!

JT Gym 12:00

Kids Party

Aug 21

The best event for kids is here! Come and let your kids play with balloons, toys and more!

JT Playground 12:00

Free massage

Sep 12

Come enjoy our free massage day from our experts!

JT Office 15:00

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:

Jul 17

JT Gym 12:00

Aug 21

JT Playground 12:00

Sep 12

JT Office 15:00

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

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