The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Shortcode was worki...
 
Share:
Notifications
Clear all

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

2 Posts
2 Users
0 Reactions
1,308 Views
Posts: 1
 adxl
Topic starter
(@adxl)
New Member
Joined: 3 years 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
1 Reply
Asti
Posts: 7661
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 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: