The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] Comment form not working on Post Type from DW Question & Answer plugin
(@asti)
Illustrious Member
Joined: 8 years ago
Currently, we see the wpDiscuz under the question.
(@hai991dk)
Eminent Member
Joined: 6 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
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8188
Jul 28, 2021 9:31 am
@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: 6 years ago
Eminent Member
Posts: 12
Jul 28, 2021 9:54 am
@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)
Joined: 8 years ago
Illustrious Member
Posts: 8188
Jul 28, 2021 10:10 am
(@hai991dk)
Joined: 6 years ago
Eminent Member
Posts: 12
Jul 28, 2021 1:05 pm
@asti It worked fine, thank you very much