BE Events Calendar – Enable Categories

BE Events Calendar will include Event Categories if your theme supports it. Add this to your theme’s functions.php to add theme support.

<?php
/**
* Add theme support for event categories
* @author Bill Erickson
* @link http://www.billerickson.net/code/be-events-calendar-categories
*/
function be_event_theme_support() {
add_theme_support( 'be-events-calendar', array( 'event-category' ) );
}
add_action( 'after_setup_theme', 'be_event_theme_support' );
view raw functions.php hosted with ❤ by GitHub

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk