Comments are not showing after post content

Hi, we use wp discourse plugin on our site. The problem is that i can’t find comment section after post content.
Seems like plugin options are fine, but we still have an issue
Can you help us please?
Forum page:
https://forum.sportenter.co.il/t/topic/80478/2
Related article:

Make sure the ‘Use Discourse Comments’ option is checked. If you have already done that, the problem might be to do with the way your theme loads comments. For Discourse comments to show up, your theme needs to be loading the WordPress comments template.

What is the name of your theme? If your theme is in the WordPress repo, I can try it out.

You could try using this plugin to debug the problem: Health Check & Troubleshooting – WordPress plugin | WordPress.org English (Canada). It will let you disable all plugins on your site and load WordPress with the default 2016 theme. You can then enable the WP Discourse plugin to see if it will display comments. There is some documentation for the plugin here: Troubleshooting using the Health Check – Make WordPress Support. You should save a backup of your database before enabling it.

thank you for your response, i’m another admin of this site. Unfortunately your instructions didn’t help us to fix this issue(. We are using Flex Mag theme (or it’s child theme, to be specific) (https://themeforest.net/item/flex-mag-responsive-wordpress-news-theme/12772303) Our theme is loading WordPress comments template and we can see comments which are created by standard wordpress instruments: http://joxi.ru/EA4WBJ9sDVEvY2. We used Health Check, as you said but it’s didn’t help us find out what may cause this issue. We still see no comments with default 2016 theme and discourse (as the only active plugin).

I think the problem is that the plugin doesn’t see comments from the forum (http://joxi.ru/krDJBP8t0DjGp2 : as you see it’s saying “START THE DISCUSSION” but there are already comments under that post: Limey - Simple, free, fully responsive sites) . But despite all of this, seems like plugin is writing data about comments to our wordpress database in discourse meta. Our settings:http://joxi.ru/8236BNbi6R04Qm http://joxi.ru/L21QE7vS6KMOQ2. Can you tell us please what are we doing wrong?

Thanks for testing it with the Health Check plugin.

There are some other comment settings that could cause a problem. Here are the default settings. Try using them to see if that fixes it.

If you have enabled the Sync Comment Data webhook, try disabling it. It will take up to 10 minutes for comments to show up when the webhook is not being used.

seems like it didn’t help(

Thanks for checking. I think I see the problem. I will try something and get back to you about it.

Edit: this is what I think is happening:

Your posts are all being displayed on the WordPress posts page. By default, WordPress does not show any comments on this page. When you disabled all plugins and tried WP Discourse with the 2016 theme, no comments would have been displayed on your posts page because that is the default WordPress behaviour.

With the WordPress twentysixteen or twentyseventeen theme, to get comments to display on the posts page you need to add a line similar to this to the content.php file. This goes below the call to the_content():

global $withcomments;
$withcomments = 1;
comments_template();

When I do that, I am able to get WP Discourse comments to display on the posts page.

Are there any single post pages on your website that you could check? It would be good to see if Discourse comments will appear on a single page.

there was already comments_template() function in content.php and i can see standart wordpress comments under the posts (as i said before), tried as single post, still nothing(

Can you see Discourse comments for single posts when you use the twentysixteen theme and disable all plugins except for WP Discourse?

no( Wordpress sees that that there are comments http://joxi.ru/D2PJ9a4tdL5OXr 1 (with twentysixteen and Discourse enabled / with my current theme and all plugins enabled) but refuses to show them on frontend . Really have no idea what may cause this.

we managed to fix this)) There was an error in child-theme code and now it’s working fine) Thank you, Simon for your help and time)

Comment box is not appearing on my blogpost. I am using twenty seventeen theme. Please somebody help me, I have been trying a lot of things since a week now.

Can you check that comments are enabled for the post? Also make sure that the ‘Enable Discourse Comments’ setting is enabled. That setting should look like this:

Let me know if comments are still not being displayed for you.

안녕하세요! 저도 동일한 문제를 겪고 있습니다. 게시 및 댓글 설정을 확인해 보았는데 모두 올바르게 체크되어 있는 것 같은데, 여전히 게시물 하단의 Discourse 섹션을 볼 수 없습니다. 보이는 것은 WordPress 댓글 섹션뿐입니다. 이전에 사이트가 스테이징 환경에 있을 때는 링크와 함께 "Discourse에서 대화를 계속하세요"라는 문구를 볼 수 있었습니다. 도움을 주시면 감사하겠습니다!

티무스님, 프로덕션 사이트에 대해 몇 가지 확인해 주실 수 있을까요? 답변에 체크해 주시면 감사하겠습니다. :slight_smile:

  • WP Discourse 플러그인이 Discourse에 연결되어 있는지, 즉 WP Discourse 관리자 패널을 열 때 "You’re Connected to Discourse"라는 메시지가 표시되는지;

  • 워드프레스 게시물이 Discourse에 게시되고 있으며, Discourse 주제에 답변이 있는 워드프레스 게시물에서 Discourse 댓글이 표시되지 않는 상태인지;

  • “Enable Discourse Comments” 설정이 true로 되어 있고 "Display comments for all topics"가 체크되어 있는지; 그리고

  • 워드프레스 캐시가 댓글 표시를 방해하고 있지 않은지. 이를 확인하려면 WP Discourse의 “Commenting” 설정에서 “Clear Cached Comment HTML” 옵션을 켜고 끄며 테스트해 주세요.

후속 조치에 감사드립니다! 네 가지 항목 모두 확인했습니다. 그런데도 여전히 아무것도 표시되지 않습니다.

네, 괜찮으시다면 WP Discourse 플러그인의 Logs 패널에 들어가서 로그를 다운로드한 뒤, DM으로 보내주시겠어요? 로그에는 개인 식별 정보나 기밀이 포함되어 있지 않습니다.

로그에 대한 자세한 내용과 포함된 항목은 아래 링크에서 확인하실 수 있습니다.

네, 알겠습니다. 보내드릴게요. 어디로 보내면 될까요?

meta.discourse.org에서 메시지로 보내 주세요.

이 링크를 클릭하여 나에게 메시지를 작성하세요.

메시지를 보내지 못하게 되어 있습니다.