The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] WPDiscuz comment area appears twice
How-to and Troubleshooting
(@miguelamendes)
Active Member
Joined: 3 years ago
Hi,
When you are logged out the WPDiscuz comment area only appears one time, but if you are logged in appears twice.
Please watch the video.
Can you help us?
Thank you!
Miguel
(@asti)
Illustrious Member
Joined: 8 years ago
@miguelamendes,
We don't find such an issue on our test websites. This is something specific in your case. Could you please send the admin login details to info[at]gvectors.com email address? I'll ask the developers to check the issue for you.
(@miguelamendes)
Active Member
Joined: 3 years ago
Hello Asti, i have sent the the admin login details to info[at]gvectors.com email address.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8188
Sep 17, 2022 7:36 am
Thank you @miguelamendes,
We've received the email. Currently, the developers are checking the issue. I'll update this topic once I get a response from them.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8188
Sep 20, 2022 6:17 am
This is not the wpDiscuz issue. Even if you deactivate the wpDiscuz plugin you will still see two comment forms. It seems the comments_template() function is called twice in the theme template files. Please contact your theme support with this issue.
(@miguelamendes)
Joined: 3 years ago
Active Member
Posts: 5
Sep 22, 2022 4:12 pm
@asti i have this code in the functions file, that previous worked to remove the duplicated comments.
/**
* Remove duplicated Comments in LearnDash focus mode
*/
add_filter('learndash_focus_mode_can_view_comments','__return_false');
add_filter('learndash_focus_mode_comments','__return_true');
add_action('learndash-focus-content-end',function(){
if(is_user_logged_in()){
comments_template();
}
});
When i remove this code from the functions file the comments are not duplicated but i don't see the comments already done in the page.
Can you help?
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8188
Sep 23, 2022 7:43 am
@miguelamendes,
The code doesn't work for the LearnDash versions higher than v. 4.3.0. But the CSS code should be kept.
The code is currently removed and everything is working fine, please watch this video: https://www.screencast.com/t/4CeHSDg0Wjch
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8188
Sep 27, 2022 8:11 am
@miguelamendes,
Please use either the "Initiate AJAX loading after page" or the "Display [View Comments] button" value for the "Comment List Loading Type" option.
Please watch this video: https://www.screencast.com/t/KBC0NcjHy
It seems there is a conflict with the "Load with page" value.
(@miguelamendes)
Joined: 3 years ago
Active Member
Posts: 5
Sep 27, 2022 2:16 pm
@asti now i see the comments, thank you for your help. 🙂