Makers Byte
Published in

Makers Byte

How to get featured events from Event Calendar?

A snippet of code for displaying featured event from the WordPress Events Calendar Plugin

Just a quick intro for The Events Calendar:

With the event calendar you can easily create and manage an events calendar on your WordPress site with free plugin. Whether your events are in-person or virtual events, this WordPress calendar plugin boasts professional features backed by our world-class team of developers and designers.

If you wanted to highlight, promote, or feature a specific event on your site, The WordPress Events Calendar’s “Featured Events” are very useful. Making an event “Featured” imbues it with a number of special properties that make it stand out from non-featured events. Hence, when developing a custom WordPress theme one of the very requirements will be on how to handle these featured events and how to query them.

Here is a snippet of code that can help you achieve this:

A smart idea could be to create a function in functions.php file and making a short like “[Upcoming_2_Events]” And then using the short-code to show any where you want to showcase the featured events.

If you are not familiar with how to create short-codes refer:

If this post was helpful…it would mean a lot to me if you could click on the “claps” icon…up to 50 claps allowed — Thank You!



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store