wpDiscuz - WordPress Comment Plugin
Comment form not wo...
 
Share:
Notifications
Clear all

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


hai991dk
Posts: 6
Topic starter
(@hai991dk)
Active Member
Joined: 1 year 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: 3337
 Asti
Support
(@asti)
Support member
Joined: 4 years ago

Currently, we see the wpDiscuz under the question.

hai991dk
Posts: 6
Topic starter
(@hai991dk)
Active Member
Joined: 1 year 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: 4 years ago

Support member
Posts: 3337

@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
(@hai991dk)
Joined: 1 year ago

Active Member
Posts: 6

@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: 4 years ago

Support member
Posts: 3337

@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
(@hai991dk)
Joined: 1 year ago

Active Member
Posts: 6

@asti It worked fine, thank you very much

Share: