<?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>
									How to show limited comments with “Load More” on a specific page only? - How-to and Troubleshooting				            </title>
            <link>https://wpdiscuz.com/community/troubleshooting/how-to-show-limited-comments-with-load-more-on-a-specific-page-only/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 19 Aug 2026 01:57:19 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: How to show limited comments with “Load More” on a specific page only?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-show-limited-comments-with-load-more-on-a-specific-page-only/#post-29701</link>
                        <pubDate>Thu, 11 Dec 2025 10:16:38 +0000</pubDate>
                        <description><![CDATA[Hi,
Please find the code below: 
//comments_per_page
add_filter(&#039;wpdiscuz_comments_args&#039;, function ($args) {
    $postId   = 84;
    $commentPerPage = 2;
    if ($args === $...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>Please find the code below: </p>
<pre contenteditable="false">//comments_per_page
add_filter('wpdiscuz_comments_args', function ($args) {
    $postId   = 84;
    $commentPerPage = 2;
    if ($args === $postId) {
        $args = $commentPerPage;
    }
    return $args;
});</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/how-to-show-limited-comments-with-load-more-on-a-specific-page-only/#post-29701</guid>
                    </item>
				                    <item>
                        <title>How to show limited comments with “Load More” on a specific page only?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-show-limited-comments-with-load-more-on-a-specific-page-only/#post-29690</link>
                        <pubDate>Tue, 09 Dec 2025 14:55:25 +0000</pubDate>
                        <description><![CDATA[Hi there,I’m using wpDiscuz on a website where one specific page acts as a small “micro-comment feed”. The site owner posts regular updates, and visitors can reply so it becomes an interacti...]]></description>
                        <content:encoded><![CDATA[<p>Hi there,<br /><br />I’m using wpDiscuz on a website where one specific page acts as a small “micro-comment feed”. The site owner posts regular updates, and visitors can reply so it becomes an interactive conversation thread.<br /><br />For that one page, I’d like to limit the number of comments initially shown (to keep the section from becoming too tall) and then show either pagination or a “Load more” button.<br />On all the other pages and posts of the site, wpDiscuz should continue to display the comments normally, without pagination or limits.<br /><br />However, none of the approaches suggested by AI tools work so far.<br /><br />I’m using the shortcode<br /><br />inside a Code Module in Divi.<br /><br />Here’s an example of code that was suggested but does not work:<br /><br />function custom_wpdiscuz_comment_order($order, $post_id) {<br />if ($post_id == 123) { // Specific page ID<br />return 'DESC'; // Newest first<br />}<br />return $order;<br />}<br />add_filter('comment_order', 'custom_wpdiscuz_comment_order', 10, 2);<br /><br /><br />Do you have any recommendations on whether it’s possible to limit the number of visible comments or enable “Load more” only on one specific page, while keeping the default behaviour everywhere else?<br /><br />Thanks in advance!</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>daniel</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-show-limited-comments-with-load-more-on-a-specific-page-only/#post-29690</guid>
                    </item>
							        </channel>
        </rss>
		