wpDiscuz - WordPress Comment Plugin
The shortcode does ...
 
Share:
Notifications
Clear all

[Solved] The shortcode does not work


petrayvonneenglish
Posts: 8
Topic starter
(@petrayvonneenglish)
Active Member
Joined: 9 months ago
Hello, since this morning I can not see the comment box in any of my pages the only thing I see is the shortcode on the site of the box ... Can you help me solve this problem? Could it be because of elementor and the widget shortcode? I wait for an answer, thank you! Greetings.
 
 
Icono de Validado por la comunidad
 
 
 
 
Captura de pantalla (4)
Captura de pantalla (5)
Topic Tags
3 Replies
Asti
Posts: 3556
 Asti
Support
(@asti)
Support member
Joined: 4 years ago

@petrayvonneenglish,

Is there the following code in the 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");
petrayvonneenglish
Posts: 8
Topic starter
(@petrayvonneenglish)
Active Member
Joined: 9 months ago

I had it inside my functions.php file but when I looked I saw that it was gone ... yesterday I made an update of my generate press theme, is it possible that with this update it will be deleted? I have reintroduced it and it works fine again. Thanks a lot! If there is anything else I will write to you again. Greetings.

1 Reply
Asti
 Asti
Support
(@asti)
Joined: 4 years ago

Support member
Posts: 3556

@petrayvonneenglish,

yesterday I made an update of my generate press theme, is it possible that with this update it will be deleted? 

Yes the customization were lost in the theme update. 

If there is anything else I will write to you again. Greetings.

Sure, please open a new support topic. This one will be closed soon. 

Share: