Widgets & Shortcodes
Widgets and shortcodes are handy ways to display events and event information in other places on your site outside of the calendar.
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
There are no upcoming events at this time.
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
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
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
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.
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.
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.