WordPress Shortcode using REST API to Display The Events Calendar by Modern Tribe

After trying to find out a way to show my events from my main blog to a subsite of a WordPress Multisite, I stumbled across a feature of The Events Calendar that solved my issues. In a recent update, the Events Calendar now has a built-in REST API feature which can be access like below:

https://wismusic.com/wp-json/tribe/events/v1/events?per_page=1&page=1
https://wismusic.com/wp-json/tribe/events/v1/events?per_page=1&category="somecategory"&page=1

After doing a bit of development, I eventually finished creating a simple plugin to display the recent events, with the ability to filter by category. All this is done using the built-in REST API that Modern Tribe was so kind to include in their free version of the plugin. Additionally, I incorporated pagination via AJAX!

This is a pretty basic example of what can be done with the new REST API in The Events Calendar by Modern Tribe. I’m sure there is much more that can be done, but for my purposes, it works perfectly. – Thanks Modern Tribe!

If you are interested in using this plugin on your website, please comment below with a valid email and I will send you a copy of the plugin. I am not posting it on here at this time since I do plan to publish it in the WordPress Plugin Directory in the near future. Once I do publish it, I will provide a link here. But, in the meantime, please comment requesting a copy until then.

Below is a live working example of the following shortcode in play:

[events-list url=https://wismusic.com limit=1 excerpt=true thumbnail=true]

Nick Moss Band with The Jimmys at High Noon Saloon in Madison,WI

When: November 18, 2017 @ 8:00 PMWhere: High Noon Saloon
Nick Moss Band with The Jimmys at High Noon Saloon in Madison,WI

... continue reading

3 thoughts on “WordPress Shortcode using REST API to Display The Events Calendar by Modern Tribe

  1. Hi to every one, the contents present at
    this website are actually awesome for people knowledge, well,
    keep up the good work fellows.

  2. Good day! I just want to give you a huge thumbs up for your great info you have right here on this post.
    I am returning to yor website for more soon.

Leave a Comment