The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
wpDiscuz shortcode
Clear all

[Solved] wpDiscuz shortcode

1 Posts
1 Users
0 Reactions
Illustrious Member Support
Joined: 7 years ago
Posts: 7325
Topic starter  

wpDiscuz allows you to load the comment section via [wpdiscuz_comments] shortcode as well.

To start using  the wpDiscuz shortcode, just put 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")) {
        include ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php";
        $html = ob_get_clean();
    return $html;
add_shortcode("wpdiscuz_comments", "my_wpdiscuz_shortcode");

Here is an instruction on how to easily add custom code in WordPress (without Breaking Your Site):

Then, you can use the shortcode in the post/page content wherever you want. 

Besides adding the shortcode, you'd also need to enable the comment form for the current post type

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

In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.