<?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 add author posts&#039; view count in author page - Author &amp; Post Statistic Widgets				            </title>
            <link>https://gvectors.com/forum/author-post-statistic-widgets/how-to-add-author-posts-view-count-in-author-page/</link>
            <description>WordPress Plugins Support Forum</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 10 May 2026 20:12:24 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>How to add author posts&#039; view count in author page</title>
                        <link>https://gvectors.com/forum/author-post-statistic-widgets/how-to-add-author-posts-view-count-in-author-page/#post-2303</link>
                        <pubDate>Tue, 30 Aug 2016 20:38:17 +0000</pubDate>
                        <description><![CDATA[Dear users,Please use this code and make sure that your WordPress is 4.1 or higher version:add_filter(&#039;get_the_archive_title&#039;, &#039;apsw_the_archive_title&#039;);if (!function_exists(&#039;apsw_the_author...]]></description>
                        <content:encoded><![CDATA[<p>Dear users,</p><p>Please use this code and make sure that your WordPress is 4.1 or higher version:</p><pre>add_filter('get_the_archive_title', 'apsw_the_archive_title');<br /><br />if (!function_exists('apsw_the_author')) {<br />    function apsw_the_archive_title($title) {<br />        global $wpdb, $post;<br />        if ($wpdb &amp;&amp; $post &amp;&amp; $post-&gt;post_author &amp;&amp; is_author()) {<br />            $sql = "SELECT SUM(`stats`.`view_count`) FROM `" . $wpdb-&gt;prefix . "sw_statistics` AS `stats` INNER JOIN `" . $wpdb-&gt;prefix . "posts` AS `p` ON `stats`.`post_id` = `p`.`ID` WHERE `p`.`post_author` = %d;";<br />            $sql = $wpdb-&gt;prepare($sql, $post-&gt;post_author);<br />            $userPostsViewsCount = $wpdb-&gt;get_var($sql);<br />            if ($userPostsViewsCount) {<br />                $title .= " posts views($userPostsViewsCount)";<br />            }<br />        }<br />        return $title;<br /><br />    }<br />}</pre>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/author-post-statistic-widgets/">Author &amp; Post Statistic Widgets</category>                        <dc:creator>VaroS</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/author-post-statistic-widgets/how-to-add-author-posts-view-count-in-author-page/#post-2303</guid>
                    </item>
							        </channel>
        </rss>
		