Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5385
    icetek
    Participant

    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?

    #5386
    Bartosz
    Keymaster

    Hi,

    It should be enough to use echo pvc_get_post_views($post->ID) if you’re in the loop.

    #5387
    icetek
    Participant

    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.

    #5388
    icetek
    Participant

    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?

    #5389
    icetek
    Participant

    I got it working. Thank you all.

    #5390
    Bartosz
    Keymaster

    Happy to hear that.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.