برای عکس از لینک :
لیست پارامتر های wp.newPost :کد:$theData = file_get_contents($Response['Aks']);
به جای 20562 آیدی عکس آپلود شده را قرار دهید :کد HTML:int blog_id string username string password struct content string post_type string post_status string post_title int post_author string post_excerpt string post_content datetime post_date_gmt | post_date string post_format string post_name: Encoded URL (slug) string post_password string comment_status string ping_status int sticky
کد:$params = array('post_title' => 'TEST', 'post_content' => 'TEST', 'post_thumbnail' => 20562); $res = $client->query('wp.newPost',0, $usr, $pwd, $params);





پاسخ با نقل قول