diff --git a/wp-content/themes/score/functions.php b/wp-content/themes/score/functions.php index d9b2e4a..28e428f 100644 --- a/wp-content/themes/score/functions.php +++ b/wp-content/themes/score/functions.php @@ -19,6 +19,10 @@ $dirname = "score"; // Directory Name if ( !defined( 'DEDICATION_CATEGORY_SLUG' ) ) define( 'DEDICATION_CATEGORY_SLUG', 'dedication' ); +/* * ************************* Concerts Information ********************* */ + +if ( !defined( 'CONCERTS_CATEGORY_SLUG' ) ) + define( 'CONCERTS_CATEGORY_SLUG', 'concerts' ); /* * ************************* File Directories ************************** */ @@ -306,9 +310,9 @@ function register_my_menus() { /* * ************************* Dedication category ********************* */ -add_action('init', 'register_dedication_category'); +//add_action('init', 'register_dedication_category'); function register_dedication_category() { - + global $wpdb; if (!get_category_by_slug(DEDICATION_CATEGORY_SLUG)) { $cat = array( 'cat_name' => 'Dedication', @@ -318,6 +322,21 @@ function register_dedication_category() { } } +/* * ************************* Concerts category ********************* */ + +//add_action('init', 'register_concerts_category'); +function register_concerts_category() { + global $wpdb; + if (!get_category_by_slug(CONCERTS_CATEGORY_SLUG)) { + $cat = array( + 'cat_name' => 'Concerts', + 'category_nicename' => CONCERTS_CATEGORY_SLUG); + + wp_insert_category($cat); + } +} + + /* * ************************* Other Features ************************** */ diff --git a/wp-content/themes/score/header.php b/wp-content/themes/score/header.php index 5997352..b5b3f06 100644 --- a/wp-content/themes/score/header.php +++ b/wp-content/themes/score/header.php @@ -54,7 +54,11 @@