Support » Fixing WordPress » Publishing a comment using wp.newComment on a blog with Disqus

  • Hi,

    I’m using the wordpress API to publish comments on posts (using wp.newComment).
    The implementation of my application worked in most cases, but then I had a problem. In one case (specific blog), a comment was published as a post.

    I started comparing the blog configuration to the other blogs I worked with and it looked like this blog has the Disqus plugin for comments, while the others didn’t.

    I was wondering if there might be a connection between the two. Is it possible I need to use the Disqus API to publish comments to this blog?

    It is possible I am way off here so here is the code I’m using to publish the comment:

    $comment = array();
    $comment['comment_parent'] = 0;
    $comment['content'] = $content;
    $comment['author'] = $username
    $comment['author_url '] = '';
    $comment['author_email '] = '';
    $client = new Zend_XmlRpc_Client('http://'.$blogUrl.'/xmlrpc.php');
    $return = $client->call('wp.newComment', array('blod_id' => $blogId, 'username' => $username,
    'password' => $password,
    'post_id' => $inReplyToId,
    'comment' => $comment));


  • The topic ‘Publishing a comment using wp.newComment on a blog with Disqus’ is closed to new replies.