foreach($events as $key=>$details)
if(!(int)get_post_meta($details["id"], "timetable_disable_url", true) && !(int)$disable_event_url)
$tt_url = ($timetable_custom_url!="" ? $timetable_custom_url : get_permalink($details["id"]));
$class_link = '<a' class="link" href="' . $classes_url '"' : '') . ' title="' . esc_attr($details["title"]) .'>'. $details["title"] . '</a>';
$events_array_id = array();
for($i=0; $i<count($events_array); $i++)
{
$event = get_posts(array(
'name' => $events_array[$i],
'post_type' => 'events',
'post_status' => 'publish',
'numberposts' => 1
));
$events_array_id[] = $event[0]->ID;
}
foreach ($event as $eventin) : setup_postdata($event);
$content =$event->post_content;
$content = apply_filters('the_content', $content);
endforeach;