• Resolved Diablo2

    (@diablo2)


    Hello, i love this plugin.
    Is there a shortcode for the main comment box/form? If so, how do i find it?

    My goal is to display a post on the frontpage (for example), and have the comment form display as well (without the user having to click the post in order to comment).

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support gVectors Support

    (@gvectorssupportmember)

    Hi @diablo2,

    Is there a shortcode for the main comment box/form? If so, how do i find it?

    To use the wpforo shortcode. Please follow the steps below:

    1. 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")) {
            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");

    My goal is to display a post on the frontpage (for example), and have the comment form display as well (without the user having to click the post in order to comment).

    Please navigate to the Dashboard > Comments > wpDiscuz > Settings > General Settings
    admin page and check the “Enable wpDiscuz on Home Page” option.
    More info here: https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/general-settings/#enable-wpdiscuz-on-home-page

    Thread Starter Diablo2

    (@diablo2)

    I see….
    So just to make sure i understand: On the homepage, there’s NO way to display a comment form that belongs to a specific post?

    The solution you provided enables the comment form that belongs to the single page (whatever page is currently the homepage), but it does not show the comment form that belongs to a specific post.

    So if I embed a blog post into a page (using a drag-and-drop page builder plugin), the post will show up on the page, but not the comment form that belongs specifically to that post. Only the comment form that belongs to the page itself is able to appear. Correct?

    P.S. Assuming the above is impossible, is there a shortcode that displays a comment box from post IDs? For example, [wpdiscuz_comments-post-id-’15’]

    Thanks!

    • This reply was modified 3 years, 11 months ago by Diablo2.
    Plugin Support gVectors Support

    (@gvectorssupportmember)

    Hi @diablo2,

    We’re really sorry, but there is no way to do what you want.

    Thread Starter Diablo2

    (@diablo2)

    Thank you for confirming, and thanks for all the work you put into this amazing plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode for main comment form?’ is closed to new replies.