Hi,
The comment form works fine on our product page, and post page;
but it does not display on our page, i tried all tips that are listed on your page "https://wpdiscuz.com/docs/wpdiscuz-documentation/getting-started/missing-comment-form/"; it did not work;
so i add up the code in theme `functions.php` file; then after it works on page, the problem is the comment form only appear on the top of the page, not the place it is inserted, please view this page:
https://tibetantrekking.com/kham-destinations-guide/garze-county/ ; the shortcode [wpdiscuz_comments] is actually at the bottom of the page, but the comment form is on the top of the page on the front end
please instruct how to use the code to display the comment form at a part of a page I choose?
thank you
Hi @ttrekking,
Please remove the code you've added in functions.php file and add this one:
function my_wpdiscuz_shortcode() {
if(file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php')){
ob_start();
include_once ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php';
return ob_get_clean();
}
}
add_shortcode( 'wpdiscuz_comments', 'my_wpdiscuz_shortcode' );
Good morning to Astghik,
i follow your instruction to remove the "old" code, and add the new one; and i put the short-code to wherever the part of the page, it works, problem solved,
thank you very much!