[Plugin: Disqus Comment System] Comment count always 0 (maybe solved!)
-
In case anybody wonders how to show the number of comments at the end of a post (single.php), here’s what I did:
check the ‘Javascript in footer’ option in the plugin, then edit your single.php:
change:
<span class="meta-comments"><?php comments_popup_link('0 commenti »', '1 Commento »', '% Commenti »'); ?></span>to:
<span class="meta-comments"><?php comments_popup_link('0 commenti »', '1 Commento »', '% Commenti »'); ?></span> <span style="visibility:hidden" class="meta-comments"><a>#disqus_thread" data-disqus-identifier="<?php echo get_post_meta(get_the_ID(), 'dsq_thread_id', true); ?>"></a></span>“visibility:hidden” is needed because otherwise it will show you a duplicate of comments and reactions.
Hope it helps
The topic ‘[Plugin: Disqus Comment System] Comment count always 0 (maybe solved!)’ is closed to new replies.