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:
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]
[events-list url=”https://wismusic.com” limit=”1″ excerpt=”true” thumbnail=”true”]