使用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); 但是该帖子仍未发表:     
已邀请:
        尝试使用其他wordpress版本。我已经使用了jwordpress-0.4.jar,它对我来说很好用,但是如果我在运行wordpress,就不记得是哪个版本了。     
        在代码中,您输入:
recentPost.setPost_status(\"Published\");
但是使用它代替:
recentPost.setPost_status(\"Publish\");
    

要回复问题请先登录注册