RapCrown adlı üyeden alıntı: mesajı görüntüle
wp-config.php yi include ettikten sonra ister post ile ister ise get ile aşşağıdaki bilgileri çağırıp aldığında sorunsuz kayıt yapabilirsin.
$exists = $wpdb->get_var("SELECT COUNT( * ) FROM $wpdb->posts WHERE post_title = '$baslik'");
    if (empty($exists)){
$insert_post = array(); 
$insert_post['post_title'] = $baslik; 
$insert_post['post_status'] = $kaydet; 
$insert_post['post_content'] = $partlar;
$insert_post['tags_input'] = $etiket; 
$insert_post['post_author'] = 1; //Admin 
$insert_post['post_category'] = $kategori;
if ($inserted_id = wp_insert_post($insert_post)) {
wp_resim_ekle($resim,$inserted_id,seourl($baslik).".jpg"); 
add_post_meta($inserted_id,'_aioseop_description',$adesc);	
add_post_meta($inserted_id,'_aioseop_title',$abaslik);	
add_post_meta($inserted_id,'_aioseop_keywords',$akey);	

}
kodlar çalışmıyor hocam