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
Jun 18

Jazz Music Thursdays

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

Buskerfest

July 6 - July 10
Jul 16

Jazz Music Thursdays

July 16 @ 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
« May 2020 » loading...
S M T W T F S
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
Sun 31

Weekly Beach Cleanup

May 31 @ 10:00 am - 10:30 am

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 May 31, 2020

This Week Navigation

Loading Events
Sun 31st

Weekly Beach Cleanup

May 31 @ 10:00 am - 10:30 am
Mon 1st

Yoga at the Park

June 1 @ 12:00 pm - 1:00 pm
Tue 2nd
No Events Today
Wed 3rd

Yoga at the Park

June 3 @ 12:00 pm - 1:00 pm
Thu 4th
No Events Today
Fri 5th

Pirate Festival

June 5 - June 6

Yoga at the Park

June 5 @ 12:00 pm - 1:00 pm
Sat 6th

Pirate Festival

June 5 - June 6

5K Fun Run

June 6 @ 7:00 am - 10:00 am

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, California 90803 United States
View all Events at this Venue

Events Calendar Pro shortcodes

👋 Looking for ticket shortcodes instead? There are plenty of examples for you to check out.

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 [gallery ids=""] 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"]
53180678
DD
days
:
HH
hours
:
MM
min
:
SS
sec

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.