<?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>
									&quot;Recent Comments&quot; Display Specific Custom Post Type Only? - wpDiscuz Widgets				            </title>
            <link>https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/</link>
            <description>WordPress Plugins Support Forum</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 09 Jun 2026 17:50:38 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: &quot;Recent Comments&quot; Display Specific Custom Post Type Only?</title>
                        <link>https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37938</link>
                        <pubDate>Wed, 22 Nov 2023 23:18:03 +0000</pubDate>
                        <description><![CDATA[@astgh ~
Once I changed &#039;page&#039; to my CPT &#039;lessons&#039;, your code worked perfectly. Thank you!!!]]></description>
                        <content:encoded><![CDATA[<p>@astgh ~</p>
<p>Once I changed 'page' to my CPT 'lessons', your code worked perfectly. Thank you!!! </p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpdiscuz-widgets/">wpDiscuz Widgets</category>                        <dc:creator>Curtis</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37938</guid>
                    </item>
				                    <item>
                        <title>RE: &quot;Recent Comments&quot; Display Specific Custom Post Type Only?</title>
                        <link>https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37937</link>
                        <pubDate>Wed, 22 Nov 2023 10:59:21 +0000</pubDate>
                        <description><![CDATA[@cbisel16,
Please use this code: 
// Add a filter callback function
function custom_filter_recent_comments_args( $args ) {
	// Modify the arguments to include your custom post type &quot;Less...]]></description>
                        <content:encoded><![CDATA[<p>@cbisel16,</p>
<p>Please use this code: </p>
<pre class="c-mrkdwn__pre" contenteditable="false" data-stringify-type="pre">// Add a filter callback function
function custom_filter_recent_comments_args( $args ) {
	// Modify the arguments to include your custom post type "Lessons" and exclude default post type
	$args = array( 'page' );

	return $args;
}

// Hook the filter function to the wpdiscuz_widget_recent_comments_args hook
add_filter( 'wpdiscuz_widget_recent_comments_args', 'custom_filter_recent_comments_args', 1 );</pre>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpdiscuz-widgets/">wpDiscuz Widgets</category>                        <dc:creator>Astghik</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37937</guid>
                    </item>
				                    <item>
                        <title>RE: &quot;Recent Comments&quot; Display Specific Custom Post Type Only?</title>
                        <link>https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37930</link>
                        <pubDate>Mon, 20 Nov 2023 20:24:24 +0000</pubDate>
                        <description><![CDATA[@astgh 
I&#039;m sorry to be a pest, but I guess I&#039;m considered a non-coder here (just an above-average end-user). I checked out this article you mentioned, but the examples don&#039;t seem to be com...]]></description>
                        <content:encoded><![CDATA[<p>@astgh </p>
<p>I'm sorry to be a pest, but I guess I'm considered a non-coder here (just an above-average end-user). I checked out this article you mentioned, but the examples don't seem to be complete in a way that I feel confident I can reverse engineer one to fit my needs. </p>
<p>Would it be possible for you (or someone else on the team) to share an example code I can paste into my "Code Snippets" plugin to filter out the "post" CPT and just show my CPT "Lessons" (as "Recent Comments") using this hook you said was just added?</p>
<p>I am guessing it looks something like this below (with the help of ChatGPT), but as it's currently written, isn't working for me when I paste it in and activate it (it's still showing "Post" post type comments as well):</p>
<pre contenteditable="false">// Add a filter callback function
function custom_filter_recent_comments_args($args) {
    // Check if the comments widget is being displayed
    if (is_active_widget(false, false, 'wpdiscuz_recent_comments_widget', true)) {
        // Modify the arguments to include your custom post type "Lessons" and exclude default post type
        $args = array('lessons');
    }

    return $args;
}

// Hook the filter function to the wpdiscuz_widget_recent_comments_args hook
add_filter('wpdiscuz_widget_recent_comments_args', 'custom_filter_recent_comments_args');</pre>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpdiscuz-widgets/">wpDiscuz Widgets</category>                        <dc:creator>Curtis</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37930</guid>
                    </item>
				                    <item>
                        <title>RE: &quot;Recent Comments&quot; Display Specific Custom Post Type Only?</title>
                        <link>https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37921</link>
                        <pubDate>Mon, 20 Nov 2023 08:31:33 +0000</pubDate>
                        <description><![CDATA[@cbisel16,
The following hooks are added: 

apply_filters(&quot;wpdiscuz_widget_most_active_comments_threads_args&quot;, $all_comms_args); 
apply_filters(&quot;wpdiscuz_widget_most_voted_comments_args&quot;...]]></description>
                        <content:encoded><![CDATA[<p>@cbisel16,</p>
<p>The following hooks are added: </p>
<ul class="p-rich_text_list p-rich_text_list__bullet" data-stringify-type="unordered-list" data-indent="0" data-border="0">
<li data-stringify-indent="0" data-stringify-border="0">apply_filters("wpdiscuz_widget_most_active_comments_threads_args", $all_comms_args); </li>
<li data-stringify-indent="0" data-stringify-border="0">apply_filters("wpdiscuz_widget_most_voted_comments_args", $all_comms_args);  </li>
<li data-stringify-indent="0" data-stringify-border="0">apply_filters("wpdiscuz_widget_recent_comments_args", $args);  </li>
<li data-stringify-indent="0" data-stringify-border="0">apply_filters("wpdiscuz_widget_top_rated_posts_args", $all_posts_args);</li>
</ul>
<p>This article should be helpful for you:</p>
<p>https://developer.wordpress.org/reference/functions/get_comments/</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpdiscuz-widgets/">wpDiscuz Widgets</category>                        <dc:creator>Astghik</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37921</guid>
                    </item>
				                    <item>
                        <title>RE: &quot;Recent Comments&quot; Display Specific Custom Post Type Only?</title>
                        <link>https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37912</link>
                        <pubDate>Sat, 18 Nov 2023 22:49:08 +0000</pubDate>
                        <description><![CDATA[@astgh ~ am I correct in that this plugin was just updated? If so, can you share how I can make this work now?

7.2.5

Added: New hooks to manage comments/posts args in tabs]]></description>
                        <content:encoded><![CDATA[@astgh ~ am I correct in that this plugin was just updated? If so, can you share how I can make this work now?<br /><br />
<blockquote>
<h4>7.2.5</h4>
<ol>
<li>Added: New hooks to manage comments/posts args in tabs</li>
</ol>
<p> </p>
</blockquote>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpdiscuz-widgets/">wpDiscuz Widgets</category>                        <dc:creator>Curtis</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37912</guid>
                    </item>
				                    <item>
                        <title>RE: &quot;Recent Comments&quot; Display Specific Custom Post Type Only?</title>
                        <link>https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37842</link>
                        <pubDate>Tue, 07 Nov 2023 11:41:45 +0000</pubDate>
                        <description><![CDATA[@cbisel16,
I&#039;ll update this topic once the new version is ready.]]></description>
                        <content:encoded><![CDATA[<p>@cbisel16,</p>
<p>I'll update this topic once the new version is ready.</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpdiscuz-widgets/">wpDiscuz Widgets</category>                        <dc:creator>Astghik</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37842</guid>
                    </item>
				                    <item>
                        <title>RE: &quot;Recent Comments&quot; Display Specific Custom Post Type Only?</title>
                        <link>https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37839</link>
                        <pubDate>Mon, 06 Nov 2023 23:04:16 +0000</pubDate>
                        <description><![CDATA[@astgh 
Oh, great — thank you! I will keep an eye out for the next version.]]></description>
                        <content:encoded><![CDATA[<p>@astgh </p>
<p>Oh, great — thank you! I will keep an eye out for the next version.</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpdiscuz-widgets/">wpDiscuz Widgets</category>                        <dc:creator>Curtis</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37839</guid>
                    </item>
				                    <item>
                        <title>RE: &quot;Recent Comments&quot; Display Specific Custom Post Type Only?</title>
                        <link>https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37826</link>
                        <pubDate>Fri, 03 Nov 2023 07:07:56 +0000</pubDate>
                        <description><![CDATA[Hi,
We&#039;re going to adda new hook in the next version of the addon. So once the new version is ready you&#039;ll be able to filter the widget.]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>We're going to adda new hook in the next version of the addon. So once the new version is ready you'll be able to filter the widget.</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpdiscuz-widgets/">wpDiscuz Widgets</category>                        <dc:creator>Astghik</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37826</guid>
                    </item>
				                    <item>
                        <title>&quot;Recent Comments&quot; Display Specific Custom Post Type Only?</title>
                        <link>https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37814</link>
                        <pubDate>Tue, 31 Oct 2023 19:20:37 +0000</pubDate>
                        <description><![CDATA[I&#039;m trying to display a list of recent comments from my course lesson custom post type on my membership website. I allow members to post comments under each lesson. 
But, when I go to my Ad...]]></description>
                        <content:encoded><![CDATA[<p>I'm trying to display a list of recent comments from my course lesson custom post type on my membership website. I allow members to post comments under each lesson. </p>
<p>But, when I go to my Addon widget "wpDiscuz Widgets" to display "Recent Comments" from my course lessons, the widget also confusingly displays recent comments from my blog posts as well, where I also have wpDiscuz setup to allow comments. There doesn't seem to be a pulldown menu option in this paid widget to allow me to choose which post type I want to pull from.</p>
<p>Is there a way to make this work?</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpdiscuz-widgets/">wpDiscuz Widgets</category>                        <dc:creator>Curtis</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpdiscuz-widgets/recent-comments-display-specific-custom-post-type-only/#post-37814</guid>
                    </item>
							        </channel>
        </rss>
		