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

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

Comments not display

4 Posts
2 Users
0 Reactions
1,138 Views
Posts: 2
Topic starter
(@aseelb94)
New Member
Joined: 4 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: 8075
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 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: 4 years ago

unfortunately, it didn't work.

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

Illustrious Member
Posts: 8075

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