function schd_booking_form_shortcode($atts) { global $post; extract(shortcode_atts(array('title' => ''), $atts)); ob_start(); if ($title) { echo '<h2>' . $title . '</h2>'; } $gc = new booking_general_class(); $gc->schd_booking_form(); $ret = ob_get_contents(); ob_end_clean(); return $ret; }