ID); $content = $content_event->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); require(mep_template_file_path('single/details.php')); do_action('mep_after_event_details'); } } add_action('mep_after_event_details', 'mep_display_event_daywise_details'); if (!function_exists('mep_display_event_daywise_details')) { function mep_display_event_daywise_details() { global $post, $event_meta; $mep_event_day = get_post_meta($post->ID, 'mep_event_day', true) ? get_post_meta($post->ID, 'mep_event_day', true) : array(); if (sizeof($mep_event_day) > 0) { require(mep_template_file_path('single/daywise_details.php')); } } }