đź‘‹ This site is a demo of The Events Calendar products. Visit our main site to get them →

Widgets & Shortcodes

Widgets & Shortcodes

Widgets and shortcodes are handy ways to display events and event information in other places on your site outside of the calendar.

Calendar widgets

Widgets in WordPress are little blocks that can be added to a template, usually as a sidebar or in the footer. WordPress comes with several installed by default, including a Category List, Tag Cloud, Search Form and others, to name a few.

The Events Calendar includes a couple of widgets as well. By default, you’ll get an Event List widget. You may have guessed it by the title, but the widget displays a list of upcoming events. It allows you to configure several things, including the heading above the widget, whether you want the widget to display if there are no upcoming events, whether you want to show all events or only featured ones, and whether the widget should generate JSON-LD on the page it is on. A full overview of this widget and its settings is available in a tutorial on our support site.

Events Calendar Pro widgets

Installing the Events Calendar Pro add-on to The Events Calendar provides you with several more handy widgets.

First off, you still get the Event List widget as you would with The Events Calendar on its own. However, the widget gains additional settings, including the ability to display more event details, such as venue, location, ticket prices, organizer information, and more. Plus, it allows you to display events from a specific category.

Event List Widget
Apr 16

Jazz Music Thursdays

April 16 @ 8:00 pm - 11:00 pm
May 21

Jazz Music Thursdays

May 21 @ 8:00 pm - 11:00 pm
Jun 18

Jazz Music Thursdays

June 18 @ 8:00 pm - 11:00 pm

Events Calendar Pro also includes a Mini Calendar widget, which is a smaller version of the calendar’s month view. It allows users to select a date and see events on that day. A full overview of the widget and its settings is available.

Mini Calendar Widget
« March 2020 » loading...
Sun 29

Weekly Beach Cleanup

March 29 @ 10:00 am - 10:30 am
Mon 30

Yoga at the Park

March 30 @ 12:00 pm - 1:00 pm
Tue 31

Healthy Cooking for Busy Schedules

March 31 @ 6:00 pm - 7:30 pm

Next is an Event Countdown widget. Select an event and the widget will display a clock that counts down to the start date of the event. This is a great way to build anticipation for an event. Our support site has additional information on the widget and how it works.

There’s also a This Week widget. The name may be pretty obvious, but this widget displays events that are scheduled in the current week. It breaks events down by each day of the week, showing the event title, date, time, venue and organizer. Check out the tutorial for more information on this widget.

This Week Widget

Events for week of March 29, 2020

This Week Navigation

Loading Events
Sun 29th

Weekly Beach Cleanup

March 29 @ 10:00 am - 10:30 am
Mon 30th

Yoga at the Park

March 30 @ 12:00 pm - 1:00 pm
Tue 31st

Healthy Cooking for Busy Schedules

March 31 @ 6:00 pm - 7:30 pm
Wed 1st

Yoga at the Park

April 1 @ 12:00 pm - 1:00 pm
Thu 2nd

Healthy Cooking for Busy Schedules

April 2 @ 6:00 pm - 7:30 pm
Fri 3rd

Pirate Festival

April 3 - April 4

Yoga at the Park

April 3 @ 12:00 pm - 1:00 pm
Sat 4th

There’s another widget that come with Events Calendar Pro: Featured Venue. Each one lets you choose a venue or organizer from your saved options and displays events that are associated with them. Learn more about the Featured Venue widget.

Featured Venue Widget
1 Grenada Ave.
Long Beach, CA 90803 United States
View all Events at this Venue

Events Calendar Pro shortcodes

Events Calendar Pro also includes a handful of useful shortcodes that can embed the calendar and events to any WordPress page or post.

Shortcodes in are little snippets of text that go in WordPress pages and posts to generate other content. The snippets are contained in square brackets ([]) and essentially instruct WordPress to do something on the page when it is published.

A perfect example is the shortcode that is included in WordPress by default. Adding that snippet to the editor will tell WordPress to create a photo gallery made with images from the Media Library. Which images? You can tell WordPress exactly which ones by added them to the snippet, e.g. [gallery ids="729,732,731,720"].

Well, as you might expect, The Events Calendar has shortcodes too! In fact, adding Events Calendar Pro to The Events Calendar unlocks access to three types of shortcodes, while adding Community Events opens up several others specifically for event submissions, and Event Tickets Plus offers a couple of its own.

To be honest, there’s so many shortcodes that it would be exhaustive to cover each and every one. Luckily, we have a tutorial that does a good job of that, but we’ll cover the highlights here.

Inserting calendar views

You can embed full calendar views into any WordPress page or post.

[tribe_events view="week"]

Week of Events

Pirate Festival

Pirate Festival

Week of Events

Pirate Festival

Pirate Festival

And the shortcode is super flexible. I accepts parameters for filtering the calendar by category, showing a specific date or date range, and whether to display the search bar or not. Check out the full tutorial for more information.

Inserting calendar widgets

That’s right! Not only can you add the widgets above to your theme’s sidebar, but you can add them to the content of any page or post as well. That’s true for each and every widget.

[tribe_event_countdown id="2634" show_seconds="yes"]

Inserting single events

So far, we’ve seen that it’s possible to add full and widget-sized versions of calendar views, but Events Calendar Pro can embed individual events as well. Although, this is only sorta like a shortcode because it actually only takes copying and pasting the event URL to embed it.

Community Events shortcodes

Community Events is our add-on that lets people submit events to your calendar. There’s a submission form, editing screen, list of the events a person has submitted, sales reports (if Community Tickets is also enabled), among several other components — and they can all be embedded on any WordPress page or post!

Our tutorial on using Community Events shortcodes provides a deep look at all the possible ways Community Events shortcodes can be added to WordPress content.

Ticket shortcodes

Our free Event Tickets plugin includes a shortcode that embeds the confirmation page that displays when an attendee successfully completes a ticket purchase using Pay Pal. It’s a great way to customize the confirmation without having to touch any code while allowing you to use your own page templates.

Event Tickets Plus includes a couple of other shortcodes: one to embed a list of people who are attend a specific event, and another to embed the confirmation page attendees see when successfully registering for an event.