// Use 'normal' Blog Categories in Events Manager function em_customcode_use_blog_categories(){ $supported_array = (EM_MS_GLOBAL && !is_main_site()) ? array():array(EM_POST_TYPE_EVENT,'event-recurring'); register_taxonomy_for_object_type('category',EM_POST_TYPE_EVENT); } add_action('init','em_customcode_use_blog_categories',100); // Rename 'normal' Blog Categories, so the difference is clear between Events Categories on the main blog. function em_customcode_rename_blog_categories() { global $submenu; $submenu['edit.php'][15][0] = __('Blog Categories', 'your_textdomain'); // You need to customize the Label and textdomain } add_action( 'init', 'em_customcode_rename_blog_categories' ); // Create #_ccBlogCategory Placeholder add_filter('em_event_output_placeholder', 'cc_output_blog_category', 1,3) ; function cc_output_blog_category($replacement, $EM_Event, $result) { if ($result == '#_ccBlogCategory') { global $EM_Event; foreach ( (get_the_category()) as $category ); $replacement = $category->cat_name; } return $replacement; } //ref: https://wp-events-plugin.com/documentation/
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.