get_var( "SELECT term_id FROM $wpdb->terms WHERE slug = '" . $category_slug . "'" ); if ($thevalue) { return $thevalue; }else{ return ""; } } ?>