require('wp-config.php');
$insert_post = array();
$insert_post['post_title'] = $title;
$insert_post['post_content'] = $body;
$insert_post['post_status'] = 'publish';
$insert_post['tags_input'] = $tags;
$insert_post['post_author'] = 1; //Admin
if ($inserted_id = wp_insert_post($insert_post))
add_post_meta($inserted_id, 'sds', 'Değer...');
Yalnız wp-config.php de o kodlar çalışmaz sanırım. Çünkü fonksiyon tanımlanmamış oluyor. wp-load.php yi include etmek gerekiyor.