<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									wpDiscuz shortcode - Frequently Asked Questions				            </title>
            <link>https://wpdiscuz.com/community/f-a-q/wpdiscuz-shortcode/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 06 Jun 2026 08:27:52 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>wpDiscuz shortcode</title>
                        <link>https://wpdiscuz.com/community/f-a-q/wpdiscuz-shortcode/#post-10652</link>
                        <pubDate>Sat, 11 Sep 2021 12:27:29 +0000</pubDate>
                        <description><![CDATA[wpDiscuz allows you to load the comment section via  shortcode as well.
To start using  the wpDiscuz shortcode, just put the following code in the active theme functions.php file:
function...]]></description>
                        <content:encoded><![CDATA[<p>wpDiscuz allows you to load the comment section via<strong> </strong> shortcode as well.</p>
<p>To start using  the wpDiscuz shortcode, just put the following code in the active theme functions.php file:</p>
<pre contenteditable="false">function my_wpdiscuz_shortcode() {
    $html = "";
    if (file_exists(ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php")) {
        ob_start();
        include ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php";
        $html = ob_get_clean();
    }
    return $html;
}
add_shortcode("wpdiscuz_comments", "my_wpdiscuz_shortcode");</pre>
<p>Here is an instruction on how to easily add custom code in WordPress (without Breaking Your Site): https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/</p>
<p>Then, you can use the shortcode in the post/page content wherever you want. </p>
<p>Besides adding the shortcode, you'd also need to enable the comment form for the <a href="https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/manage-comment-forms/comment-form-settings/#post-types" target="_blank" rel="noopener">current post type</a>. </p>
<p><a title="" href="https://wpdiscuz.com/wp-content/uploads/2019/12/wpDiscuz-7-comment-form-settings-11.png" data-rel="lightbox-image-15" data-magnific_type="image" data-rl_title="" data-rl_caption=""><img class="alignnone wp-image-5886" src="https://wpdiscuz.com/wp-content/uploads/2019/12/wpDiscuz-7-comment-form-settings-11-1030x530.png" alt="" width="400" height="206" /></a></p>
<p><span style="font-size: 10pt;color: #800000"><strong><em>That is: <a href="https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/missing-comment-form/#fixing_tip_5" target="_blank" rel="noopener">the shortcode can be used if the post type supports comments.</a>  </em></strong></span></p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/f-a-q/">Frequently Asked Questions</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/f-a-q/wpdiscuz-shortcode/#post-10652</guid>
                    </item>
							        </channel>
        </rss>
		