WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ch8rt
    Member
    Posted 2 years 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
    Plugin Contributor

    Posted 2 years 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 2 years 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.

  4. flgirl
    Member
    Posted 1 year ago #

    I can't seems to find this option in the new Disqus 2.73. I have one slider that shows code. There isn't any comment counts to enable....do you have any other advice until Disqus gets back to me?

    [ Signature moderated. ]

  5. mehulved
    Member
    Posted 1 year ago #

    I have run into the same problem too. Tyler's solution worked for me. I have version 2.73 of disqus too.

    @flgirl search on the page for ' Output JavaScript in footer ' and check the box next to it.

  6. flgirl
    Member
    Posted 1 year ago #

    WOW! Mehulved.....you just fixed it!!!! Unbelievable! Thank you so so very much! I'm so glad it was just so simple like that!

    I hope this advice helps others as well!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic