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

Comments not display

4 Posts
2 Users
0 Reactions
933 Views
Posts: 2
Topic starter
(@aseelb94)
New Member
Joined: 3 years 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: 7617
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 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
Posts: 2
Topic starter
(@aseelb94)
New Member
Joined: 3 years ago

unfortunately, it didn't work.

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

Illustrious Member
Posts: 7617

@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: