使用jwordpress在WordPress中发布帖子
|
我正在使用jwordpress-0.4.jar发布到WordPress安装。
我使用的代码是:
Wordpress wp = new Wordpress(username, password, xmlRpcUrl);
Page recentPost = new Page();
recentPost.setPost_status(\"Published\");
recentPost.setDescription(\"<ul>\" + desc + \"</ul>\");
recentPost.setCategories(cat);
String pageID=recentPost.getPage_id();
String result = wp.newPost(recentPost, true);
以前效果不错,但是现在当我发布时,将其设置为计划模式,
我试过了:
最近的Post.setPost_status(\“已发布\”);
和
wp.newPost(recentPost,true);
但是该帖子仍未发表:
没有找到相关结果
已邀请:
2 个回复
赐黄
恋裂
但是使用它代替: