• HI,
    First, great plugin! Very well done.

    I’m having an issue when loading posts via Ajax that <?php comments_template(); ?> is rendering the standard WP comments form instead of Disqus.

    Do you have any idea why this would be happening? I’m wondering if there is JS being run on page load to replace the standard comments with Disqus. If so, i’ll just need to trigger this function with a callback.

    Thanks for your time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Darren Cooney

    (@dcooney)

    @joelcj91
    Sorry to be a pest, but I’m just wondering if you had any knowledge on my post above.

    I’m basically just trying to understand what the function is you are using to replace the standard WP comments with Disqus and if it can be used in an Ajax callback.

    Cheers,

    Plugin Author Joel James

    (@joelcj91)

    Hi @dcooney

    Sorry for the late response. Please see line #1260 in disqus-core/disqus.php.

    DCL is using comments_template filter to replace default comments template with Disqus comments template. Disqus comments template is loaded from dsq_comments_template function (see line #957).

    • This reply was modified 8 years, 3 months ago by Joel James.
    • This reply was modified 8 years, 3 months ago by Joel James.
    Thread Starter Darren Cooney

    (@dcooney)

    @joelcj91 Thanks a lot. This helps. Im thinking the issue might be around is_singular returning false in the admin-ajax call as I have seen this come up before.

    I can take it from here.
    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disqus not displaying in Ajax’ is closed to new replies.