wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

Comments not display


aseelb94
Posts: 2
Topic starter
(@aseelb94)
New Member
Joined: 3 months ago

Hi,

I use careerfy theme, in this theme, there is a custom post page (job) for each user

On this page, I want to display comments

I have added a custom hook, and then call it from the page file.

 

shortcode in function.php

function my_wpdiscuz_shortcode() {
$html = "";
if (file_exists(ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php")) {
ob_start();
include_once ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php";
$html = ob_get_clean();
}
return $html;
}
add_shortcode("wpdiscuz_comments", "my_wpdiscuz_shortcode");

 

inside the file I have added:

echo do_shortcode("[wpdiscuz_comments]");

 

but unfortunately, I get this

I have enabled comments from WordPress setting, comments work fine on posts

image

 

help please

3 Replies
Asti
Posts: 3567
 Asti
Support
(@asti)
Support member
Joined: 4 years ago

Hi,

Now you'll need to edit the comment form and enable it for the current type. More info here: https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/manage-comment-forms/comment-form-settings/#post-types

Reply
aseelb94
Posts: 2
Topic starter
(@aseelb94)
New Member
Joined: 3 months ago

unfortunately, it didn't work.

Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 4 years ago

Support member
Posts: 3567

@aseelb94,

Please send the admin login details to info[at]gvectors.com email address. I'll ask the developers to check the issue for you. 

Reply
Share: