[Solved] wpDiscuz for LearnDash comments  


New Member
Joined: 12 months ago
Posts: 2
03/01/2019 8:58 am  

Hi JDalen,

I am trying desperately trying to get the WPDiscuz comments to replace the default LearnDash comments on each page. How did you get them to show up? I see you are trying to limit them but I want them on every page as you do. Help help help! 

I attached two different page types from my website. One is a learndash lesson and the other is a blog post. I want WPDiscuz to appear on all learndash lessons/topics/courses as they do on the blog post. 

Screen Shot 2019 01 02 at 9.55.41 PM
Screen Shot 2019 01 02 at 9.56.11 PM

Thank you, 


Support Team Admin
Joined: 5 years ago
Posts: 2966
03/01/2019 10:15 am  

Please navigate to Dashboard > Comments > Forms admin page, edit the default form and make sure it's enabled for all post types: https://wpdiscuz.com/docs/wpdiscuz-documentation/getting-started/custom-comment-form/comment-form-settings/#post-types

Active Member
Joined: 6 months ago
Posts: 7
23/06/2019 1:17 am  

I've just discovered wpDiscuz and like it a lot; also a LearnDash user. Tom's instructions had no effect for me for some reason. I did, however, find where a change should be made.

With the Plugin Editor, change this file:


Replace lines 52 through the comment on line 73 with:

<?php comments_template() ?>

to enable wpDiscuz in LearnDash 3.0 Focus Mode.

Support Team Admin
Joined: 2 years ago
Posts: 3480
25/06/2019 3:38 pm  

Hi @lanetownsend,

First of all, thank you for using wpDiscuz.

I really appreciate you taking time and share the information. 

Active Member
Joined: 6 months ago
Posts: 7
25/06/2019 6:42 pm  

My pleasure, @Astghik. I also put the following snippet together that enables wpDiscuz in LearnDash 3.0 Focus Mode, but without editing the LD source file directly as mentioned earlier.

add_filter('learndash-focus-content-content-after', 'ld_wpdiscuz_comments_enable');
function ld_wpdiscuz_comments_enable(){


New Member
Joined: 4 months ago
Posts: 2
07/08/2019 4:30 am  


Hello! I tried your code and it worked. The comments form is now showing inside the focus mode, at the bottom; but even though the comments for the topic are open, when focus mode is set to active, i get the message "comments are closed".  Then if i switch focus mode off, the comments appear as normal, but then focus mode on again (never closing messages from the topic editing screen) and "the comments are closed" message appears again.

¿Have you experienced this? We are using Hello theme with elementor pro. 

Active Member
Joined: 6 months ago
Posts: 7
08/08/2019 2:03 am  

@cultivatusideas @astghik

I haven't encountered exactly the same thing, but you may start by double checking a few options. Perhaps start with switching to a different theme other than Hello to see if the problem still exists. If so, switch back to Hello and try the following.

Also check that comments are enabled via WP-Admin › Settings › Discussion. Look at the top for the section, "Default Article Settings," and make sure the option is checked for, "Allow people to post comments on new articles."

Next, check that comments are enabled via WP-Admin › LearnDash › Topics. Choose the "Settings" tab at the top (next to "All Topics"), and at the bottom of the page in the "Topic Custom Post Type Options" meta-box, you'll see the option for "Editor Supported Settings." Make sure comments are enabled here as well by checking the box.

Lastly, check to see if you can enable wpDiscuz via WP-Admin › Comments › WPDISCUZ › Forms. Click on the form you're using and on the resulting page there will be a section labeled, "Display comment form for post types," where you should find a checkbox next to "sfwd-topics." Make sure this box is checked, too.

(Don't forget to save your changes when working with any of the above options.)

Let me know if these ideas make any difference. Try them methodically (one-by-one) so you know which had an effect and which didn't. These ideas may not work, but it's a good place to start before we get our hands dirty in additional custom code, yes?

New Member
Joined: 4 months ago
Posts: 2
09/08/2019 3:26 am  


We already solved it. Thank you for the response! None of what you wrote worked, but we managed to solve it with the info found here: https://developerscodex.com/enable-learndash-comments-in-focus-mode/

Hope this helps others who experience this issue.

Active Member
Joined: 6 months ago
Posts: 7
11/08/2019 9:29 pm  


Awesome! Great find. I'll give that solution a try as well. Glad you got it worked out!

Black Emo