$yenialanf= mysql_real_escape_string($alanf);
$yenialanb= mysql_real_escape_string($alanb);

// Create post object
  $my_post = array();
  $my_post['post_title'] = $yenialanf;
  $my_post['post_content'] = $yenialanb;
  $my_post['post_status'] = 'publish';
  $my_post['post_author'] = 1;
  $my_post['post_category'] = array(8,39);

// Insert the post into the database
  wp_insert_post($my_post);
Bu şekildede türkçe karakterde hata veriyor kod yanlış sanırım yazamadım düzgün....