<?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>
									Comment counter beside name name does not work for every site - How-To and Troubleshooting				            </title>
            <link>https://gvectors.com/forum/how-to-and-troubleshooting/comment-counter-beside-name-name-does-not-work-for-every-site/</link>
            <description>WordPress Plugins Support Forum</description>
            <language>en-US</language>
            <lastBuildDate>Fri, 15 May 2026 05:28:48 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Comment counter beside name name does not work for every site</title>
                        <link>https://gvectors.com/forum/how-to-and-troubleshooting/comment-counter-beside-name-name-does-not-work-for-every-site/#post-14046</link>
                        <pubDate>Tue, 12 Mar 2019 08:36:05 +0000</pubDate>
                        <description><![CDATA[Hi @webminfo,We&#039;ve just checked the theme and it works fine. Please make sure you&#039;ve checked the code in your active theme&#039;s functions.php file. Also, delete all caches before checking. If y...]]></description>
                        <content:encoded><![CDATA[<p>Hi @webminfo,</p><p>We've just checked the theme and it works fine. Please make sure you've checked the code in your <em><strong>active theme's</strong></em> functions.php file. </p><p>Also, delete all caches before checking. If you installed some cache plugins deactivate those plugins and check again. </p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/how-to-and-troubleshooting/">How-To and Troubleshooting</category>                        <dc:creator>Astghik</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/how-to-and-troubleshooting/comment-counter-beside-name-name-does-not-work-for-every-site/#post-14046</guid>
                    </item>
				                    <item>
                        <title>Comment counter beside name name does not work for every site</title>
                        <link>https://gvectors.com/forum/how-to-and-troubleshooting/comment-counter-beside-name-name-does-not-work-for-every-site/#post-14043</link>
                        <pubDate>Tue, 12 Mar 2019 04:35:12 +0000</pubDate>
                        <description><![CDATA[I have a problem when showing the comment counter on my website.It&#039;s working on my site but when I move my site to a new subdomain using Duplicator plugin, it does not show anymore. I have c...]]></description>
                        <content:encoded><![CDATA[<p>I have a problem when showing the comment counter on my website.</p><p>It's working on my site but when I move my site to a new subdomain using Duplicator plugin, it does not show anymore. I have checked the functions.php file and every line of code still there.</p><p>The working screenshot: <img src="https://i.imgur.com/77sA9qA.png" /></p><p>It does not display comment counter any more: <img src="https://i.imgur.com/JXLUBrH.png" /></p><p>The code:</p><pre>/**<br /> * Add comment next username Wpdiscuz<br /> */<br />add_filter('wpdiscuz_comment_author', 'my_commentCount', 10, 2);<br />function my_commentCount($author_name, $comment) {<br />    global $wpdb;<br />    $no_comment = "No comments";<br />    $one_comment = "1 comment";<br />    $more_comments = "% comments";<br />     $count = $wpdb-&gt;get_var('SELECT COUNT(comment_ID) FROM ' . $wpdb-&gt;comments. ' WHERE comment_author_email = "' . addslashes($comment-&gt;comment_author_email) . '"');<br />    $comment_text = my_comment_number_text($no_comment, $one_comment, $more_comments, $count);<br />        return $author_name .' &lt;span class="wpdiscuz-comment-count"&gt;'.$comment_text.'&lt;/span&gt;';<br />}<br />function my_comment_number_text( $zero = false, $one = false, $more = false, $number = 0 ) {<br />    if ( $number &gt; 1 ) { $output = str_replace( '%', number_format_i18n( $number ), $more); } elseif ( $number == 0 ) { $output = $zero; } else { $output = $one; } return $output;<br />}</pre><p>Please advice.</p><p>Thanks</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/how-to-and-troubleshooting/">How-To and Troubleshooting</category>                        <dc:creator>webminfo.com</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/how-to-and-troubleshooting/comment-counter-beside-name-name-does-not-work-for-every-site/#post-14043</guid>
                    </item>
							        </channel>
        </rss>
		