برای عکس از لینک :
کد:
$theData = file_get_contents($Response['Aks']);
لیست پارامتر های wp.newPost :
کد 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
به جای 20562 آیدی عکس آپلود شده را قرار دهید :
کد:
$params = array('post_title' => 'TEST', 'post_content' => 'TEST', 'post_thumbnail' => 20562);
$res = $client->query('wp.newPost',0, $usr, $pwd, $params);