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 a freelance WordPress developer and a contributing developer 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.

Ready to upgrade your website?

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

Let's Talk