Support » Plugin: DW Question & Answer » Using DW Question & Answer with Disqus

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DesignWall

    (@designwall)

    Hi Karimit,
    At the moment, DWQA is still not yet compatible with Disqus. We are working on makeing this plugin to be compatible with Disqus.

    Thread Starter karimit

    (@karimit)

    Thanks for your response. Actually I got it to work by choosing the “Use Disqus Comments on: only with blog posts with close comments” option in Disqus settings. Of course the question page comments should be open.
    Unfortunately, I ran into another problem. Visitors (not logged in users)can’t see comments on questions and answers. Only logged in users can. When the current user is a visitor, have_comments() always returns false. I found that the query (I echoed the $query varibale in wp-includes/comment.php) has an extra join that is causing the problem.
    Here is the query:
    SELECT * FROM wp_comments JOIN wp_posts ON wp_posts.ID = wp_comments.comment_post_ID INNER JOIN wp_term_relationships AS pll_tr ON pll_tr.object_id = ID WHERE comment_approved = '1' AND comment_post_ID = 76 AND pll_tr.term_taxonomy_id IN (2) ORDER BY comment_date_gmt ASC
    This part: INNER JOIN wp_term_relationships AS pll_tr ON pll_tr.object_id = ID is causing the problem. I tried this with a different site and its working perfectly, and this extra join was not there. I understand that this probably has nothing to do with the DW plugin. I just felt like sharing my problem :).
    Thanks anyway.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using DW Question & Answer with Disqus’ is closed to new replies.