Tagged: post count, wordpress
When you go to the front page and see all new posts, I want each one to show the view count.
Like the date posted, the number of times viewed, and a rating of 5 stars on my site.
I checked the source code at wp-content/plugins/post-views-counter/includes/functions.php
But I cannot figure out (on my own) how do to the PHP echo call for the index.php file in my theme.
How do I echo the post count per each post?
It should be enough to use echo pvc_get_post_views($post->ID) if you’re in the loop.
That doesn’t work, you reload the front page and each post view number increases.
Here is my site(beware, adults only) http://www.young-girls.com/
If you reload you will see.
I have tried to implement this without much luck. For some reason a brand new article I just posted says 15 views instead of 2? I added the echo statement to the index.php and single.php … Please help?
I got it working. Thank you all.
Happy to hear that.
After you register and login to the site, you may post all plugin support questions in the Support Forum.
If you need to provide private info, please create a ticket and then reply to it using Set as private reply option.