The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Comment form not wo...
 
Share:
Notifications
Clear all

[Solved] Comment form not working on Post Type from DW Question & Answer plugin

7 Posts
2 Users
1 Reactions
4,293 Views
Posts: 12
Topic starter
(@hai991dk)
Eminent Member
Joined: 5 years ago

Hello Support Team!

I'm using "DW Question & Answer Pro" plugin, I have enabled WPdiscuz comment form on post type "dwqa-question", but it not show, 

2021 07 25 105128

I want to replace "Answers" area with Comment form (WPDiscuz).

https://oto79.com/question/of-the-following-name-symbol-combinations-of-elements-which-one-is-wrong

Hope to get help!

Topic Tags
6 Replies
Asti
Posts: 7664
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Currently, we see the wpDiscuz under the question.

Posts: 12
Topic starter
(@hai991dk)
Eminent Member
Joined: 5 years ago

Yes, you can see it, but you cannot add comments (please try), because of Form not working on question type (I added those comments from wp-admin). Form works fine on download type and post type. Please help

 

4 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7664

@hai991dk,

Seems the comments_open() property is somehow closed. Please put this code in the active theme functions.php file: 

add_filter('comments_open', function ($open, $post_id) {
    if (get_post_type($post_id) === 'dwqa-question') {
        $open = true;
    }
    return $open;
}, 99999, 2);

Just make sure the red marked value is matched with the post type created by the plugin. 

(@hai991dk)
Joined: 5 years ago

Eminent Member
Posts: 12

@asti Many thanks for your commment! Comment form have show, but it not shows for guest user, It is only display to logged in users.

You can download this plugin in here: https://oto79.com/download/dw-question-answers/

Thanks fo much!

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7664

@hai991dk,

It's working fine, please see the comment made by us here: 

https://oto79.com/question/of-the-following-name-symbol-combinations-of-elements-which-one-is-wrong/#comment-316

Also, watch this video: https://www.screencast.com/t/QoTufDbRm1Ds

(@hai991dk)
Joined: 5 years ago

Eminent Member
Posts: 12

@asti It worked fine, thank you very much

Share: