我有一个基于WordPress的分类网站,我试图创建和XML提要应用程序,从其他网站获取XML并创建广告。我能够从feed中的wordpress中创建帖子。但我不能将图像从远程服务器复制,有没有权限问题,我现在用的是worpress功能wp_handle_upload_error,但我得到的错误在wordpress中提交无效的表单
此代码
public function xml_image_upload($upload)
{
if ($this->xml_file_is_image($upload['tmp_name']))
{
$file = wp_handle_upload($upload, $overrides);
}
return $file;
}
我得到的错误是“无效的表单提交“
我想解决很长一段时间。我不知道什么是错的..
Feed是否实际发送图像? – Steven
这些提要有图像的网址,我们选择带有网址的图片,并使用wp_handle_upload(不工作)上传它 – harikrish