Displaying your advertisement on an online media has become a new trend of the society. Now more and more people use the online media to display and advertise their products. WordPress websites are also used for this purpose. In fact now many people open up such spaces that can offered to the advertisers. The advertisers then buy that space for their ads.
If you are using the WordPress website to let people see that you advertise ads, then it’s a good idea to show them the comments stats of your website which are only visible to you on your dashboard. But now you can also let the other people see your stats. In this way they will know your worth and will sell their ads to you. In this article we will guide you that how you can enable your post to the others.
In order to make your comment stats visible on any page you have to paste the following code in that area.
$count_posts = wp_count_posts();
$posts = $count_posts->publish;
$count_comments = get_comment_count();
$comments = $count_comments['approved'];
echo "There's a total of ".$comments." comments on my blog, with an average ".round($comments/$posts)." comments per post.";
You can also paste this code on the sidebars of your page. In this way it will show your integral statistics value to every user.