Disqus Comment System
Disqus shortcode (11 posts)

  1. Fruitful Code
    Posted 3 years ago #


    I want to add Disqus comment via shortcode on specific page, is that possible?


  2. davidtrounce
    Posted 3 years ago #

    I have the same question.

  3. freeace00
    Posted 3 years ago #

    me too i have same question.
    what's shorcode?

  4. Fixit
    Posted 3 years ago #

    I have the same concern...

  5. belgianwolfie
    Posted 3 years ago #

    put this in your functions.php:

    function disqus_embed($disqus_shortname) {
        global $post;
        echo '<div id="disqus_thread"></div>
        <script type="text/javascript">
            var disqus_shortname = "'.$disqus_shortname.'";
            var disqus_title = "'.$post->post_title.'";
            var disqus_url = "'.get_permalink($post->ID).'";
            var disqus_identifier = "'.$disqus_shortname.'-'.$post->ID.'";

    and then this on the spot where you want to have disqus:

    <?php disqus_embed('THE SHORTNAME OF YOUR DISQUS'); ?>

    (credits go to this guy : http://ayudawordpress.com/disqus-en-wordpress-sin-necesidad-de-plugin/ I don't speak Spanish :))

  6. jeffqc
    Posted 3 years ago #

    thank, it work :)

  7. KcrK
    Posted 3 years ago #

    i've added this code to functions.php file in theme folder. I need to put a Disqus comments only on one page (ex. Comments), which use a fullwidth page template, so i must change other pages template to pages with sidebar. And i have an error:

    Warning: Cannot modify header information - headers already sent by (output started at /wp-content/themes/volt/functions.php:476) in /wp-includes/pluggable.php on line 876

    Line 876 of pluggable.php:

    header("Location: $location", true, $status);

    Any ideas what's wrong?

  8. Marin Marusic
    Posted 3 years ago #

    well it's probably sth on the line 476 of yours theme functions.php file :P

  9. wtwp
    Posted 2 years ago #


    I found disqus didn't come up in my latest post.
    any idea how I can add comment on any post not showing it?

    Would it be a conflict with other plugins that's causing the comment box not to show?

    Thanks in advance

  10. wtwp
    Posted 2 years ago #

    I have managed to resolve this by playing around all the settings even though I never touched any of them before or during the post.

    In case anyone is having a similar problem, I clicked on discussion on the post edit screen and clicked on comment before saving or updating the post.

    It is now working thank God.

  11. Volatileangel
    Posted 2 years ago #

    Oh my gosh, thank you so much for this discussion, after days of trying to add a comment section to the WP-Creativix Portfolio pages I have finally done it!

    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Disqus Comment System
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic