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
help please
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
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
unfortunately, it didn't work.
Please send the admin login details to info[at]gvectors.com email address. I'll ask the developers to check the issue for you.
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.


