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.
By using the shortcode
you can display all your events in a list. This list will display the event’s title, image, short info, date, time and location.
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:
Give a title to your list.
[events_list title="My Events"]
Define the number of events you want to display. Default value is -1 (all events).
A specific category of your events. Note that you have to use the category’s slug.
Display events from a specific month. For example, if you want to display July’s month, you have to add month=”07″.
We love animals, so come to our event and see how you should treat them
JT Park 12:00
Do you like yoga? Join our group now and stretch your body!
JT Gym 12:00
The best event for kids is here! Come and let your kids play with balloons, toys and more!
JT Playground 12:00
Come enjoy our free massage day from our experts!
JT Office 15:00
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.
Note that you can also use all attributes together. For example:
[events_list title="My Events" month="07" cat="events" num="3" style="grid"]