Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter 9ery

    (@9ery)

    Hello,

    first, thank you for your help. I did what you said first, disabling comments and adding the following code in the .php for my posts :

    <div id="disqus_thread"></div>
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        var disqus_shortname = 'myshortname'; // Required - Replace example with your forum shortname
        var disqus_identifier = '<?php echo get_post_meta($post->ID, 'dis_ident_field', true); ?>';
    
        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function() {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();
    </script>

    So I am able to set dis_ident_field in the custom fields of wordpress.

    But for some reason, it doesn’t show the thread I want. So I am doing a mistake somewhere, but I’m not sure where:
    – Am I using the right ID for the thread while defining dis_ident_field ?
    – Is it the one we find in the admin/moderate section in disqus when I select the thread like : thread:xxxxxxxxx?
    – Am I stupid? 🙂

    Hi Everybody,

    I’m experiencing the exact same problem, and the fix provided by prophecy2040 doesn’t work for us.

    What could it be?

Viewing 2 replies - 1 through 2 (of 2 total)