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

Free massage

Jul 09

Come and enjoy our free massage day! Our experts will take care of you!

JT Office 15:00 - 21:00

num

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

Shortcode:

[events_list num="2"]

Preview:

Free massage

Jul 09

Come and enjoy our free massage day! Our experts will take care of you!

JT Office 15:00 - 21:00

Wine Day

Nov 07

Don't miss the wine day in our town! We are waiting for you!

JT Office 10:00

cat

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

Shortcode:

[events_list cat="events"]

Preview:

Free massage

Jul 09

Come and enjoy our free massage day! Our experts will take care of you!

JT Office 15:00 - 21: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:

Free massage

Jul 09

Come and enjoy our free massage day! Our experts will take care of you!

JT Office 15:00 - 21:00

Wine Day

Nov 07

Don't miss the wine day in our town! We are waiting for you!

JT Office 10:00

Most beautiful landscapes

Dec 08

The most spectacular landscapes from all over the world

JT Office 17:00

Kids Party

Dec 10

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

JT Playground 12:00-17:00

The beauty of flowers

Dec 10

Our experts will show you how to decorate your house with flowers!

JT Park 10:00-20:00

Yoga Courses

Dec 12

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

JT Gym 12:00-18:00

Animals: Our Best Friends

Dec 19

We love animals, so come to our event and see how you should treat them

JT Park 12:00

Tips for healthy life

Dec 20

Do you like fruits, vegetables and juices? Join our event now!

JT Gym 11:00-20: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:

Free massage

Jul 09

JT Office 15:00 - 21:00

Wine Day

Nov 07

JT Office 10:00

Most beautiful landscapes

Dec 08

JT Office 17:00

Kids Party

Dec 10

JT Playground 12:00-17: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"]

Do you have any problems with JT Event Calendar?