<?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>
									Learnpress problem comment showing - How-to and Troubleshooting				            </title>
            <link>https://wpdiscuz.com/community/troubleshooting/learnpress-problem-comment-showing/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 19 Aug 2026 17:02:54 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Learnpress problem comment showing</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/learnpress-problem-comment-showing/#post-23116</link>
                        <pubDate>Tue, 30 Jan 2024 09:57:11 +0000</pubDate>
                        <description><![CDATA[@jordan,
The code works fine on our test websites.
Currently, we have plugin customization and PRO support services at the gVectors Team. They can assess the work and fix the issue for you...]]></description>
                        <content:encoded><![CDATA[<p>@jordan,</p>
<p>The code works fine on our test websites.</p>
<p>Currently, we have plugin customization and PRO support services at the gVectors Team. They can assess the work and fix the issue for you. Just contact us via salesgvectors.com email address.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/learnpress-problem-comment-showing/#post-23116</guid>
                    </item>
				                    <item>
                        <title>RE: Learnpress problem comment showing</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/learnpress-problem-comment-showing/#post-23081</link>
                        <pubDate>Sun, 28 Jan 2024 08:11:26 +0000</pubDate>
                        <description><![CDATA[@asti Hello, Thanks for your reply. I added the code and it&#039;s still the same comments on each lesson :]]></description>
                        <content:encoded><![CDATA[@asti <br /><br />Hello, <br /><br />Thanks for your reply. <br /><br />I added the code and it's still the same comments on each lesson : <br /><img src="https://i.gyazo.com/7e8bba8f33c87b7c6edceb8428f02f6d.png" />]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Jordan</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/learnpress-problem-comment-showing/#post-23081</guid>
                    </item>
				                    <item>
                        <title>RE: Learnpress problem comment showing</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/learnpress-problem-comment-showing/#post-22979</link>
                        <pubDate>Mon, 22 Jan 2024 13:27:56 +0000</pubDate>
                        <description><![CDATA[Hi,
Try to use this code:
add_filter(&#039;wpdiscuz_js_options&#039;, function($jsOption){
    if(!class_exists(&#039;LP_Global&#039;)){
        return $jsOption;
    }

    $item = LP_Global::course_ite...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>Try to use this code:</p>
<pre contenteditable="false">add_filter('wpdiscuz_js_options', function($jsOption){
    if(!class_exists('LP_Global')){
        return $jsOption;
    }

    $item = LP_Global::course_item();

    if (!$item) {
        return $jsOption;
    }

    $jsOption = $item-&gt;get_id();

    return $jsOption;
});</pre>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/learnpress-problem-comment-showing/#post-22979</guid>
                    </item>
				                    <item>
                        <title>Learnpress problem comment showing</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/learnpress-problem-comment-showing/#post-22961</link>
                        <pubDate>Sun, 21 Jan 2024 04:40:21 +0000</pubDate>
                        <description><![CDATA[Hello wpDiscuz Support Team,
I am using your wpDiscuz plugin on a WordPress site with the LearnPress plugin and the SocialV theme. I&#039;ve encountered an issue related to displaying unique com...]]></description>
                        <content:encoded><![CDATA[<p>Hello wpDiscuz Support Team,</p>
<p>I am using your wpDiscuz plugin on a WordPress site with the LearnPress plugin and the SocialV theme. I've encountered an issue related to displaying unique comment sections for each LearnPress lesson.</p>
<p>To integrate wpDiscuz into my child theme, I have added custom code to my <code>functions.php</code> file. This code was necessary to ensure the correct display of wpDiscuz CSS, as it was not loading properly initially. Here is the relevant part of the code:<br /><br /></p>
<pre contenteditable="false">function my_wpdiscuz_shortcode($atts) {
    // Extracting the 'id' attribute
    $attributes = shortcode_atts(array(
        'id' =&gt; '', // Default value is an empty string
    ), $atts);

    $unique_id = $attributes;

    // Adding the unique ID to the HTML structure if needed
    $html = "";
    if (file_exists(ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php")) {
        ob_start();
        // Use $unique_id here if needed to customize the comment form
        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");

// Enqueue wpDiscuz Styles
function my_theme_enqueue_wpdiscuz_styles() {
    // Checking if you are on a page where you want to load wpDiscuz styles
    if (is_singular('lp_course')) {
        // Queue the main style file
        wp_enqueue_style('wpdiscuz-main-style', get_site_url() . '/wp-content/plugins/wpdiscuz/themes/default/style.css');
        // Additional style lines can be uncommented as needed
    }
}
add_action('wp_enqueue_scripts', 'my_theme_enqueue_wpdiscuz_styles');
</pre>
<p><br /><br /><br /></p>
<p>The issue I'm facing is that the same set of comments is displayed across different lesson pages. I intend to have a unique set of comments for each individual lesson. I suspect this might be related to the custom shortcode implementation or a conflict with LearnPress.</p>
<p>Could you please provide guidance or suggestions on how to achieve unique comment sections for each LearnPress lesson using wpDiscuz? Any assistance or insight you can offer would be greatly appreciated.</p>
<p>Thank you for your support.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Jordan</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/learnpress-problem-comment-showing/#post-22961</guid>
                    </item>
							        </channel>
        </rss>
		