The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
WP Discuz comment n...
 
Share:
Notifications
Clear all

WP Discuz comment not working with Brizy Builder

2 Posts
2 Users
0 Reactions
5,458 Views
Posts: 12
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sushant)
Active Member
Joined: 6 years ago
[#835]

Hi,

I'm using the free version for Brizy.

My plugins are all updated to the latest versions. 

  1. I completed the setup for wpdiscuz
  2. Then I added the shortcode to the page where I want the plugin to be. 
  3. I also 'turned on" the comments for the page where I added the plugin,

Still, can't see the plugin, instead I see the text for the shortcode, see here 

I used another short-code for a different plugin, and it worked, but not for Wpdiscuz. 

Let me know what went wrong and how can this be fixed. 


1 Reply
Asti
Posts: 8210
 Asti
Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@asti)
Illustrious Member
Joined: 8 years ago

Hi @sushant,

Please put the code in the current active theme functions.php file: 

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

Then put the shortcode in post content:

[wpdiscuz_comments]

If you need to use shortcode in theme files add it with do_shortcode function:

<?php
   echo do_shortcode("[wpdiscuz_comments]");
?>

Reply
Share: