Display upcoming events from The Events Calendar

You can use Display Posts to list upcoming events from The Events Calendar. After adding the code snippet below to your site, you can generate a list of upcoming events with:

[display-posts post_type="tribe_events"]

This code snippet goes in a core functionality plugin or Code Snippets.

Filters used:

Published by Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributor to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Join the Conversation

  1. Love this plugin, but how do I include the start date and location for events? It’s a bit useless without those

    1. There are two ways to customize the content displayed by the shortcode:
      1. Use the Output Filter to add the start date and location data to the shortcode’s output
      2. Use Template Parts to control the shortcode’s output using files in your theme

      Both will require a bit of work on your part to make sure it displays the correct content and looks the way you want.

      Unfortunately every event calendar plugin stores data differently, so we can’t generalize the display of upcoming events. However, your event calendar plugin could add support for Display Posts inside their plugin and display the event start date and location when a shortcode queries for events.

Leave a comment

Your email address will not be published. Required fields are marked *