Title: Shortcode for wpdiscuz
Last modified: August 23, 2019

---

# Shortcode for wpdiscuz

 *  Resolved [samtulana](https://wordpress.org/support/users/samtulana/)
 * (@samtulana)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/)
 * Hello. Please make a shortcode to insert a comment form anywhere on the page.
 * Thank you.

Viewing 15 replies - 1 through 15 (of 35 total)

1 [2](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/page/2/?output_format=md)

 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * (@gvectorssupport)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-11860558)
 * Hi [@samtulana](https://wordpress.org/support/users/samtulana/),
 * Thank you for using wpDiscuz and for contacting us.
 * You can use this shortcode:
 *     ```
       function my_wpdiscuz_shortcode() {
         if (file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php')) {
             ob_start();
             include_once ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php';
             return ob_get_clean();
         }
       }
       add_shortcode('wpdiscuz_comments', 'my_wpdiscuz_shortcode');
       ```
   
 *  [kevin091291](https://wordpress.org/support/users/kevin091291/)
 * (@kevin091291)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-11861167)
 * Personally, I just tried. It does not work.
    I want to integrate the code with
   the theme of the extension “WPMobile.app”.
    -  This reply was modified 6 years, 9 months ago by [kevin091291](https://wordpress.org/support/users/kevin091291/).
 *  [zubo2](https://wordpress.org/support/users/zubo2/)
 * (@zubo2)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-11876738)
 * I tried this too …
    I assume that the code above needs to be added to the functions.
   php file
 * but what is the shortcode that i use
 * i have tried [wpdiscuz_comments] and [my_wpdiscuz] and [my_wpdiscuz_shortcode]
 * please update urgently!!!
 *  Thread Starter [samtulana](https://wordpress.org/support/users/samtulana/)
 * (@samtulana)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-11878211)
 * Please implement the shortcode. It is very convenient and now relevant. Thank
   you for your work.
 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * (@gvectorssupport)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-11886384)
 * Hi [@zubo2](https://wordpress.org/support/users/zubo2/), [@samtulana](https://wordpress.org/support/users/samtulana/),
 * You should use the shortcode below 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]");
       ?>
       ```
   
    -  This reply was modified 6 years, 9 months ago by [gVectors Support](https://wordpress.org/support/users/gvectorssupport/).
 *  [zubo2](https://wordpress.org/support/users/zubo2/)
 * (@zubo2)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-11887093)
 * thanks… works well
 *  [geenow1085](https://wordpress.org/support/users/geenow1085/)
 * (@geenow1085)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-11924071)
 * The shortcode works, but I have a question/problem…. I am trying to add multiple
   comment boxes under one page. Only one is showing though. The others are not.
   How do I get the others to display?
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-11924925)
 * Hi [@geenow1085](https://wordpress.org/support/users/geenow1085/),
    I’m, sorry
   but wpDiscuz is can only be loaded on a single post/page, it can’t work on archive
   pages like Categories, Tags, Author, Search, etc… wpDiscuz is based on AJAX and
   JS functions so they make conflict if there are more then one comment form. The
   Comment System of WordPress is also designed for single pages, it uses current
   single post/page ID for all functions so mixing lots of posts on non-singular
   page stops comment form working functions.
 *  [geenow1085](https://wordpress.org/support/users/geenow1085/)
 * (@geenow1085)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-11926083)
 * Aw ok. Is there a workaround? I would pay you guys to do it? I’m thinking it 
   can be done through Iframe or something? Also, Facebook comment plugin you can
   do it by referencing the url attachment page and you can use multiple comment
   boxes in that one page. I don’t like facebooks plugin though I love yours and
   I really want to use it!!
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-11926797)
 * I’m really sorry but we don’t have any workaround for this. Facebook and other
   comment plugins load their comment system in [iframes ](https://www.w3schools.com/tags/tag_iframe.asp)
   from 3rd party servers so they can load it many times. But wpDiscuz is a WordPress
   integrated plugin, it’s loaded with your WP page content.
 *  [Bakhshi](https://wordpress.org/support/users/bakhshi/)
 * (@bakhshi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-12340385)
 * Hello
 * where should I add this code?
 * <?php
    echo do_shortcode(“[wpdiscuz_comments]”); ?>
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-12340935)
 * Hi [@bakhshi](https://wordpress.org/support/users/bakhshi/),
    First please let
   me know why you want to use wpDiscuz shortcode. wpDiscuz should be loaded on 
   your posts automatically, you should not use shortcode in post content. Please
   read this documentation and fix the issue in case the wpDiscuz comment form is
   missing: [https://wpdiscuz.com/docs/wpdiscuz-documentation/getting-started/missing-comment-form/](https://wpdiscuz.com/docs/wpdiscuz-documentation/getting-started/missing-comment-form/)
 *  [Axel Schaumann](https://wordpress.org/support/users/axelschaumann/)
 * (@axelschaumann)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-12400998)
 * I use Elementor/Elementor Pro to create pages/lessons in Learndash. I use two
   columns. The comment box and the comments should only be in one column. Is this
   possible? Can it be achieved with a shortcode? What do I have to do?
 *  [danial](https://wordpress.org/support/users/danish63/)
 * (@danish63)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-12594125)
 * i have a best slotion for this.if you want multiple comment boxes of wp-discuz
   on one page so copy this short code with given hook in functions.php it will 
   work on all pages.
 * function my_wpdiscuz_shortcode() {
    if (file_exists(ABSPATH . ‘wp-content/plugins/
   wpdiscuz/templates/comment/comment-form.php’)) { ob_start(); include_once ABSPATH.‘
   wp-content/plugins/wpdiscuz/templates/comment/comment-form.php’; return ob_get_clean();}}
   add_shortcode(‘wpdiscuz_comments’, ‘my_wpdiscuz_shortcode’);
 * add_action(‘jnews_single_post_end’,’discuzz’);
    function discuzz() {
 * echo do_shortcode(“[wpdiscuz_comments]”);
 * }
 *  [myriad58](https://wordpress.org/support/users/myriad58/)
 * (@myriad58)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/#post-12667110)
 * Adding the following code to the comments.php file in the Brizy Plugin:
 *     ```
       /**
       * Add support for DISCUZ comments plugin
       */
       function my_wpdiscuz_shortcode() {
       if (file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php')) {
       ob_start();
       include_once ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php';
       return ob_get_clean();
       }
       }
       add_shortcode('wpdiscuz_comments', 'my_wpdiscuz_shortcode');</code>
       ```
   
 * worked for me!!

Viewing 15 replies - 1 through 15 (of 35 total)

1 [2](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/page/2/?output_format=md)

The topic ‘Shortcode for wpdiscuz’ is closed to new replies.

 * ![](https://ps.w.org/wpdiscuz/assets/icon-256x256.png?rev=1076265)
 * [Comments - wpDiscuz](https://wordpress.org/plugins/wpdiscuz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdiscuz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdiscuz/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdiscuz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdiscuz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdiscuz/reviews/)

## Tags

 * [divi](https://wordpress.org/support/topic-tag/divi/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 35 replies
 * 17 participants
 * Last reply from: [starapple](https://wordpress.org/support/users/starapple/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/shortcode-for-wpdiscuz/page/3/#post-14454038)
 * Status: resolved