for($i=1; $i<=50; $i++){
$baslik = $_POST["ad$i"];
$nasil = $_POST["link$i"];
//$kat = $_POST['kat'];
//$sef = $_POST['textarea2'];
echo $baslik;
setlocale(LC_COLLATE, 'turkish');
mysql_query("SET NAMES 'utf8'");
$baslik= iconv('ISO-8859-9', 'UTF-8', $baslik);
$nasil= iconv('ISO-8859-9', 'UTF-8', $nasil);
//$sef= iconv('ISO-8859-9', 'UTF-8', $sef);
$insert_post = array();
$insert_post['post_title'] = $baslik;
$insert_post['post_content'] = '';
//$insert_post['tags_input'] = $sef;
$insert_post['post_status'] = 'publish';
$insert_post['post_author'] = 1; //Admin
//$insert_post['post_category'] = array($kategori);
if ($pid = wp_insert_post($insert_post))
{
mysql_query("UPDATE wp_posts SET post_content= '" . addslashes($nasil) . "' WHERE id='" . $pid . "'"); // İçeriği güncelledik
echo "<center><b>IÇERIK EKLENDI</b></center>";
}
}
çok teşekkür ederim tam da halletmiştim ama seninkini kullanacağım.