I need help with the variables that Disqus is asking for… I really have not idea how to code it right. So far the only var that I have pot on it, is the_permalink() and I’m not even sure if that where I’m supposed to put it.
Is not like I need it, I mean the comments are shown and they are displayed according to the current page/post in which the user is currently in. I’m doing it, just because is reccommend it. Thanks.
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
*/
var disqus_config = function () {
this.page.url = '<?php the_permalink(); ?>'; /* Replace PAGE_URL with your page's canonical URL variable */
this.page.identifier = ''; /* Replace PAGE_IDENTIFIER with your page's unique identifier variable */
};
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = '//EXAMPLE.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
This topic was modified 8 years, 8 months ago by kirasiris. Reason: Is not really a big deal
The page I need help with: [log in to see the link]
The topic ‘Disqus comments with no plugin.’ is closed to new replies.
(@kirasiris)
8 years, 8 months ago
I need help with the variables that Disqus is asking for… I really have not idea how to code it right. So far the only var that I have pot on it, is the_permalink() and I’m not even sure if that where I’m supposed to put it.
Is not like I need it, I mean the comments are shown and they are displayed according to the current page/post in which the user is currently in. I’m doing it, just because is reccommend it. Thanks.
The page I need help with: [log in to see the link]