wpDiscuz - WordPress Comment Plugin
Shortcode was worki...
 
Share:
Notifications
Clear all

[Solved] Shortcode was working perfectly but now it simply doesn't work


adxl
Posts: 1
 adxl
Topic starter
(@adxl)
New Member
Joined: 4 months ago

Short code goes like this:

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");

It used to work perfectly but now I don't know what has happened and it looks like disaster...To see the problem scroll down to the bottom of this link or refer to the image attached below: https://zap.adxl.in/project4289/

wpdiscuz problem
Topic Tags
1 Reply
Asti
Posts: 4894
 Asti
Support
(@asti)
Support member
Joined: 5 years ago

@adxl,

Please make sure the comment form is enabled for the current post type

That is: the shortcode can be used if the post type supports comments.  

Also, please try the steps mentioned in this FAQ: https://wpdiscuz.com/community/f-a-q/if-design-of-the-wpdiscuz-comment-form-is-broken/

Share: