May 25, 2020 7:09 pm
Hello
I have a problem with the new update version 7
I used this code [wpdiscuz_comments] but with this update it no longer works
10 Replies
May 25, 2020 7:28 pm
Hi @a01new.
Please use this code instead of the old one.
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");
Jul 08, 2020 8:40 pm
I pasted that code in my functions.php and the shortcode works in the body of a lesson now (in fact, it appears twice). But I can't get it to work in my sidebar even though I can get other shortcodes to work using a text widget. Here's a sample page: http://kippdcmath.com/.../overview-of-kipp-dc-math-10-min/