post_title; $post_content = apply_filters('the_content',$post_data->post_content) ; $post_contents[$post_title] = $post_content; } if(is_array($post_contents)) { return $post_contents; } else { return false; } } function aspose_import_export_array_to_html($post_contents){ global $html_filename; $upload_dir = wp_upload_dir(); $upload_path = $upload_dir['path'] . '/'; $html_filename = 'output_'.time().'.htm'; $output_string = << EOD; foreach($post_contents as $key => $value) { // $value = iconv("UTF-8", "ASCII//TRANSLIT", $value); $output_string .= << {$key}

{$value}


EOD; } $output_string .= << EOD; //echo $output_string; exit; @unlink($upload_path . $html_filename); file_put_contents($upload_path . $html_filename,$output_string); return $upload_path . $html_filename; }