Forums

Disqus Comment System
Script inserted when not needed. (3 posts)

  1. ch8rt
    Member
    Posted 7 months ago #

    I've done this a few times before but never had an issue until doing it on an install with Disqus present.

    I want a wp_query to display posts that use a certain custom field, these are then dropped into a jQuery cycle slideshow. The problem here is that Disqus is inserting its javascript after WordPress has looped through the posts, its not needed, but its creating an extra element within the container.

    The jQuery cycle plugin picks up all child elements of the choosen container so I'm getting this javascript showing up on the page in raw form?

    Any ideas on how to prevent this happening?

    http://wordpress.org/extend/plugins/disqus-comment-system/

  2. Tyler Hayes
    Member
    Posted 7 months ago #

    Hi ch8rt,

    As suggested in the "Comment counts not working, or code showing up in other plugins" section of our WordPress Troubleshooting doc, try enabling the Comment Counts checkbox under Advanced Options in the Disqus plugin. This will output the Disqus JavaScript in the footer and should fix this.

    Let us know what you find,

    Tyler
    http://docs.disqus.com
    http://twitter.com/disqus

  3. Will D. White
    Member
    Posted 3 months ago #

    Just ran into this problem too. Was wondering why a bunch of disqus script was showing up in a custom loop. Checked the box as suggested and problem was solved.

Reply

You must log in to post.

About this Plugin

About this Topic