get_var("SELECT post_headers FROM $wpdb->posts WHERE ID='$id'"); fwrite($fp, $txt_headers); fwrite($fp,"\n"); $txt_content=$wpdb->get_var("SELECT post_content FROM $wpdb->posts WHERE ID='$id'"); fwrite($fp, $txt_content); fclose($fp); ?>