التعليقات لا تظهر بعد محتوى المنشور

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:

إعجاب واحد (1)

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. 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.

8 إعجابات

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) (Flex Mag - Responsive WordPress News Theme by MVPThemes | ThemeForest) 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: יוניון מגדלנה חוזרת הביתה - ספורטאנטר - הבית לספורט בישראל) . 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?

إعجاب واحد (1)

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.

إعجاب واحد (1)

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?

إعجاب واحد (1)

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)

إعجاب واحد (1)

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.

3 إعجابات

مرحبًا! أواجه نفس المشكلة. لقد تحققت من إعدادات النشر والتعليق، ويبدو أنها مُعيَّنة بشكل صحيح، لكنني ما زلت غير قادر على رؤية قسم Discourse في نهاية المنشور. كل ما أراه هو قسم تعليقات ووردبريس. سابقًا، عندما كان موقعي في مرحلة الاختبار (staging)، كنت أستطيع رؤية عبارة “تابع المحادثة على Discourse” مع رابط. أي مساعدة مُقدَّرة!

مرحبًا تيم، هل يمكنك تأكيد بعض الأمور لي بخصوص موقعك الإنتاجي؟ إذا أمكنك التحقق منها ووضع علامة عليها في ردك. شكرًا لك :slight_smile:

  • هل إضافة WP Discourse الخاصة بك متصلة بـ Discourse، أي أنك ترى “أنت متصل بـ Discourse” عند تحميل لوحة تحكم WP Discourse؛

  • هل منشورات ووردبريس تُنشر على Discourse، وهل هناك ردود على مواضيع Discourse في منشورات ووردبريس التي لا ترى تعليقات Discourse عليها؛

  • هل قمت بتعيين “تفعيل تعليقات Discourse” إلى “صحيح” وتم تفعيل خيار “عرض التعليقات لجميع المواضيع”؛ و

  • هل ذاكرة التخزين المؤقت (Cache) في ووردبريس لا تمنعك من رؤية التعليقات. للتحقق من ذلك، يرجى تجربة تبديل إعداد “التعليقات” في WP Discourse “مسح HTML التعليقات المخزنة مؤقتًا”.

إعجاب واحد (1)

شكرًا على المتابعة! جميع الفحوصات الأربعة سارت على ما يرام. ومع ذلك، لا يزال لا يظهر أي شيء.

حسناً، إذا كنت مرتاحاً لذلك، هل يمكنك الانتقال إلى لوحة السجلات في إضافة WP Discourse، وتنزيل السجلات، ثم إرسالها إلي عبر الرسائل الخاصة؟ يرجى ملاحظة أنه لا توجد معلومات تعريف شخصية أو أسرار في السجلات.

لمزيد من المعلومات حول السجلات وما تحتويه، راجع

بالتأكيد. سأقوم بإرسالها. إلى أين يجب أن أرسلها؟

أرسلها إليّ في رسالة هنا على meta.discourse.org.

انقر على هذا الرابط لكتابة رسالة لي.

لا يسمح لي بإرسال رسالة إليك.