Disqus comment form not displayed on self hosted Wordpress site

谁说我不能喝 提交于 2019-12-01 22:20:48

问题


I have followed all instructions on installing Disqus commenting system on my website but the old comment form is still visible.

My question is: is <?php comment_form(); ?> enough to display the comments or there needs to be something else on the single.php page.

What else should I be taking care?

I don't have any other commenting engine installed.

Thank you


回答1:


OK I found it. Instead of using the <?php comment_form(); ?> I had to use <?php comments_template(); ?>. That did the trick




回答2:


install woody snippets on your site insert a new php snippet:

comments_template(); ?>

go in widget select custom html and place the code:

<div id="disqus_thread">
[wbcr_php_snippet id="THE ID WHAT WOODY GAVE YOU"]
</div>

and place the widget where you want

obviously don't forget to enable comments site-wide



来源:https://stackoverflow.com/questions/14334393/disqus-comment-form-not-displayed-on-self-hosted-wordpress-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!